Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 178 | Revision 181 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 178 Revision 180
Zeile 235... Zeile 235...
235
 
235
 
Zeile 236... Zeile 236...
236
        $sel = "";
236
        $sel = "";
237
 
237
 
238
        //if ( !$_SESSION['mainNavigation'] )
238
        //if ( !$_SESSION['mainNavigation'] )
239
        {
239
        {
240
            $sql = 'SELECT
240
            /*$sql = 'SELECT
241
                    id,
241
                    id,
242
                    name,
242
                    name,
243
                    status,
243
                    status,
Zeile 311... Zeile 311...
311
                        $nav = $this->navigation( $elem["id"], false, true, $cnt );
311
                        $nav = $this->navigation( $elem["id"], false, true, $cnt );
312
                        $navigation[ $cnt ]["sub"] = $nav["sub"];
312
                        $navigation[ $cnt ]["sub"] = $nav["sub"];
313
                    }
313
                    }
314
                    $cnt++;
314
                    $cnt++;
315
                }
315
                }
316
            }
316
	    }*/
317
        }
317
	}
-
 
318
	$dirs = self::with('directory')->whereIn("status",[0,2,99])->where("directory_id","=",$father)->get();
318
        $time2 = microtime( true );
319
        $time2 = microtime( true );
319
        $diff = $time2 - $time;
320
        $diff = $time2 - $time;
320
        $GLOBALS["zeit"][ __function__ . "_" . $father ] += $diff;
321
        $GLOBALS["zeit"][ __function__ . "_" . $father ] += $diff;
321
        return $navigation;
322
        return $navigation;
322
    }
323
    }
-
 
324
    public function directory()
-
 
325
    {
-
 
326
	    return $this->belongsTo(Directory::class);
-
 
327
    }
323
}
328
}