Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Revision 2 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2 Revision 24
Zeile 4... Zeile 4...
4
 
4
 
5
    use Illuminate\Database\Eloquent\Factories\HasFactory;
5
    use Illuminate\Database\Eloquent\Factories\HasFactory;
6
    use Illuminate\Database\Eloquent\Model;
6
    use Illuminate\Database\Eloquent\Model;
7
    use Illuminate\Database\Eloquent\Relations\BelongsTo;
7
    use Illuminate\Database\Eloquent\Relations\BelongsTo;
-
 
8
    use Illuminate\Database\Eloquent\Relations\HasMany;
8
    use Illuminate\Database\Eloquent\Relations\HasMany;
9
    use Illuminate\Support\Collection;
9
    use Spatie\Sluggable\HasSlug;
10
    use Spatie\Sluggable\HasSlug;
Zeile 10... Zeile 11...
10
    use Spatie\Sluggable\SlugOptions;
11
    use Spatie\Sluggable\SlugOptions;
11
 
12
 
Zeile 41... Zeile 42...
41
            if ( isset( $GLOBALS["INI"]["Navigation"]["showArtikelstamm"] ) )
42
            if ( isset( $GLOBALS["INI"]["Navigation"]["showArtikelstamm"] ) )
42
            {
43
            {
43
                $showArtikelstamm = true;
44
                $showArtikelstamm = true;
44
            }
45
            }
Zeile 45... Zeile 46...
45
 
46
 
Zeile 46... Zeile 47...
46
            $treebuffer = $this->with( 'directory' )->orderBy( "kennung" )->orderBy( "name" )->whereIn( "status", [ 0, 99 ] )->where( "directory_id", "=", $root )->where( 'articlemaster', '=' , 0 )->get();
47
            $treebuffer = $this->with( 'directory' )->orderBy( "kennung" )->orderBy( "name" )->whereIn( "status", [ 0, 99 ] )->where( "directory_id", "=", $root )->where( 'articlemaster', '=', 0 )->get();
47
 
48
 
48
 
49
 
Zeile 235... Zeile 236...
235
 
236
 
236
        function medium(): HasMany
237
        function medium(): HasMany
237
        {
238
        {
238
            return $this->hasMany( DirectoryMedium::class )->orderBy( "rank" );
239
            return $this->hasMany( DirectoryMedium::class )->orderBy( "rank" );
-
 
240
        }
239
        }
241
 
240
        function template(): HasMany
242
        function template(): HasMany
241
        {
243
        {
242
            return $this->hasMany( DirectoryTemplate::class );
244
            return $this->hasMany( DirectoryTemplate::class );
-
 
245
        }
-
 
246
 
-
 
247
        public function manufacturer(): BelongsTo
-
 
248
        {
-
 
249
            return $this->belongsTo( Manufacturer::class );
-
 
250
        }
-
 
251
 
-
 
252
        public function shopPosition(): Collection
-
 
253
        {
-
 
254
            $pos = collect(); //$pos = "Sie sind hier: <a href=\"/\">Startseite</a> <span class='breadcrumb-trenner'> &raquo; </span>";
-
 
255
            $path = getPath( $_SESSION['navigation']['position'] )->reverse();
-
 
256
            foreach ( $path as $dir )
-
 
257
            {
-
 
258
                $pos[] = $dir;
-
 
259
            }
-
 
260
 
-
 
261
            return $pos;
-
 
262
        }
243
        }
263