Skip to content
Snippets Groups Projects
Commit 0d87e441 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

test

parent 2437d834
No related branches found
No related tags found
No related merge requests found
<?php
class Shop{
public static function getAllProducts(){
$itemConfig = Connexion::pdo()->query("SELECT itemConfig FROM qs_shops")->fetchAll(PDO::FETCH_ASSOC);
$items = yaml_parse($itemConfig);
print_r($items);
$itemsConfig = Connexion::pdo()->query("SELECT itemConfig FROM qs_shops")->fetchAll(PDO::FETCH_ASSOC);
/*
item:
......@@ -13,7 +11,10 @@ public static function getAllProducts(){
*/
$return = array();
foreach($items as $item){
foreach($itemsConfig as $itemConfig){
$item = yaml_parse($itemConfig);
print_r($items);
$itemAleadyEntered = false;
foreach($return as $checkItem){
if($item['item']['type'] == $checkItem->getId()){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment