Class Category
Model for the categories table
- Illuminate\Database\Eloquent\Model
- rsanchez\Deep\Model\Category uses rsanchez\Deep\Model\JoinableTrait
public
|
|
public
boolean
|
|
public static
|
#
setCategoryFieldRepository(
Set the global CategoryFieldRepository |
public static
|
#
setChannelRepository(
Set the global ChannelRepository |
public
Illuminate\Database\Eloquent\Builder
|
|
protected static
|
|
public
Illuminate\Database\Eloquent\Relations\BelongsToMany
|
|
public
|
|
public
|
|
public
|
|
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategoryId( Illuminate\Database\Eloquent\Builder $query, dynamic $categoryId )
Filter by Category ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotCategoryId( Illuminate\Database\Eloquent\Builder $query, dynamic $categoryId )
Filter by not Category ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategoryName( Illuminate\Database\Eloquent\Builder $query, dynamic $categoryName )
Filter by Category Name |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotCategoryName( Illuminate\Database\Eloquent\Builder $query, dynamic $categoryName )
Filter by not Category Name |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategoryGroup( Illuminate\Database\Eloquent\Builder $query, dynamic $groupId )
Filter by Category Group |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotCategoryGroup( Illuminate\Database\Eloquent\Builder $query, dynamic $groupId )
Filter by Not Category Group |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategoryIdString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Category ID string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategoryGroupString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Category Group string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategoryNameString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Category Name string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeLimit( Illuminate\Database\Eloquent\Builder $query, integer $limit )
Limit the number of results |
public
Illuminate\Database\Eloquent\Builder
|
|
public
Illuminate\Database\Eloquent\Builder
|
#
scopeParentOnly( Illuminate\Database\Eloquent\Builder $query, boolean $parentsOnly = true )
Parents only, no sub categories |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeParentOnlyString( Illuminate\Database\Eloquent\Builder $query, string $string )
Parents only string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeChannel( Illuminate\Database\Eloquent\Builder $query, dynamic $channelName )
Filter by Channel Name |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotChannel( Illuminate\Database\Eloquent\Builder $query, dynamic $channelName )
Filter by not Channel Name |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeChannelString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Channel string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeEntryChannel( Illuminate\Database\Eloquent\Builder $query, dynamic $channelName )
Filter by Channel Name |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotEntryChannel( Illuminate\Database\Eloquent\Builder $query, dynamic $channelName )
Filter by not Channel Name |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeEntryChannelString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Channel string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowEmpty( Illuminate\Database\Eloquent\Builder $query, mixed $showEmpty = true )
Filter by categories with no entries |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowEmptyString( Illuminate\Database\Eloquent\Builder $query, string $string )
Show empty string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowExpired( Illuminate\Database\Eloquent\Builder $query, mixed $showExpired = true )
Filter by expired entries |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowExpiredString( Illuminate\Database\Eloquent\Builder $query, string $string )
Show expired string parameter |
public
|
#
scopeShowFutureEntries( Illuminate\Database\Eloquent\Builder $query, mixed $showFutureEntries = true )
|
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowFutureEntriesString( Illuminate\Database\Eloquent\Builder $query, string $string )
Show empty string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeStatus( Illuminate\Database\Eloquent\Builder $query, dynamic $status )
Filter by Entry Status |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotStatus( Illuminate\Database\Eloquent\Builder $query, dynamic $status )
Filter by Not Entry Status |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeStatusString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Status string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeTagparam( Illuminate\Database\Eloquent\Builder $query, string $key, string $value )
Apply a single parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeTagparams( Illuminate\Database\Eloquent\Builder $query, array $parameters )
Apply an array of parameters |
public
|
|
public
Illuminate\Database\Eloquent\Builder
|
|
protected
|
#
scopeArrayFromString( Illuminate\Database\Eloquent\Builder $query, string $string, string $scope )
Call the specified scope, exploding a pipe-delimited string into an array Calls the not version of the scope if the string begins with not eg 'not 4|5|6' |
public
|
(),
(),
(),
()
|
protected
string
|
$table | 'categories' |
|
protected
string
|
$primaryKey | 'cat_id' |
|
protected
boolean
|
$nested | false |
#
Whether to build the collection as a nested set |
protected
rsanchez\Deep\Collection\NestedCategoryCollection
|
$childCategoryCollection |
|
#
Collection of child categories |
protected static
|
$categoryFieldRepository |
|
#
Global Category Field Repository |
protected static
|
$channelRepository |
|
#
Global Channel Repository |