Class Title
Model for the channel_titles table
- Illuminate\Database\Eloquent\Model
- rsanchez\Deep\Model\AbstractEntity
- rsanchez\Deep\Model\Title uses rsanchez\Deep\Model\JoinableTrait, rsanchez\Deep\Model\GlobalAttributeVisibilityTrait
Direct known subclasses
rsanchez\Deep\Model\Entry
public
Illuminate\Database\Eloquent\Relations\HasOne
|
|
public
Illuminate\Database\Eloquent\Relations\HasManyThrough
|
|
public
|
|
public
Illuminate\Database\Eloquent\Relations\HasMany
|
|
public
|
|
public
string|integer
|
|
public
string|null
|
|
public
|
|
public static
|
#
setChannelRepository(
Set the global ChannelRepository |
public static
|
#
setSiteRepository(
Set the global SiteRepository |
public static
|
#
setHydratorFactory(
Set the global HydratorFactory |
protected static
|
|
public
Illuminate\Database\Eloquent\Builder
|
|
public
|
|
public
|
#
hydrateCollection(
Loop through all the hydrators to set Entry custom field attributes |
public
|
|
public
Carbon\Carbon
|
|
public
Carbon\Carbon|null
|
#
getExpirationDateAttribute( integer $value )
Get the expiration_date column as a Carbon object, or null if there is no expiration date |
public
Carbon\Carbon|null
|
#
getCommentExpirationDateAttribute( integer $value )
Get the comment_expiration_date column as a Carbon object, or null if there is no expiration date |
public
Carbon\Carbon|null
|
#
getRecentCommentDateAttribute( integer $value )
Get the recent_comment_date column as a Carbon object, or null if there is no expiration date |
public
Carbon\Carbon
|
|
public
string|null
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategory( Illuminate\Database\Eloquent\Builder $query, dynamic $categoryId )
Filter by Category ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeRelatedCategories( Illuminate\Database\Eloquent\Builder $query, integer $entryId )
Get entries that are share one or more categories with the specified entry ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeRelatedCategoriesUrlTitle( Illuminate\Database\Eloquent\Builder $query, string $urlTitle )
Get entries that are share one or more categories with the specified entry url title |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeAllCategories( Illuminate\Database\Eloquent\Builder $query, dynamic $categoryId )
Filter out entries without all Category IDs |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotAllCategories( Illuminate\Database\Eloquent\Builder $query, dynamic $categoryId )
Filter out entries without all Category IDs |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotCategory( 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
|
#
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
|
#
scopeChannelId( Illuminate\Database\Eloquent\Builder $query, dynamic $channelId )
Filter by Channel ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotChannelId( Illuminate\Database\Eloquent\Builder $query, dynamic $channelId )
Filter by not Channel ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeAuthorId( Illuminate\Database\Eloquent\Builder $query, dynamic $authorId )
Filter by Author ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotAuthorId( Illuminate\Database\Eloquent\Builder $query, dynamic $authorId )
Filter by not Author ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowExpired( Illuminate\Database\Eloquent\Builder $query, boolean $showExpired = true )
Filter out Expired Entries |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowFutureEntries( Illuminate\Database\Eloquent\Builder $query, boolean $showFutureEntries = true )
Filter out Future Entries |
public
Illuminate\Database\Eloquent\Builder
|
|
public
Illuminate\Database\Eloquent\Builder
|
#
scopeFixedOrder( Illuminate\Database\Eloquent\Builder $query, dynamic $fixedOrder )
Set a Fixed Order |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeSticky( Illuminate\Database\Eloquent\Builder $query, boolean $sticky = true )
Set Sticky Entries to appear first |
public
Illuminate\Database\Eloquent\Builder
|
|
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotEntryId( Illuminate\Database\Eloquent\Builder $query, dynamic $notEntryId )
Filter by Not Entry ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeEntryIdFrom( Illuminate\Database\Eloquent\Builder $query, integer $entryIdFrom )
Filter out entries before the specified Entry ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeEntryIdTo( Illuminate\Database\Eloquent\Builder $query, integer $entryIdTo )
Filter out entries after the specified Entry ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeGroupId( Illuminate\Database\Eloquent\Builder $query, dynamic $groupId )
Filter by Member Group ID |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeNotGroupId( Illuminate\Database\Eloquent\Builder $query, dynamic $notGroupId )
Filter by Not Member Group ID |
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
|
#
scopeShowPages( Illuminate\Database\Eloquent\Builder $query, boolean|string $showPages = true )
Filter by Page |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowPagesOnly( Illuminate\Database\Eloquent\Builder $query, boolean|string $showPagesOnly = true )
Filter by Pages Only |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeStartOn( Illuminate\Database\Eloquent\Builder $query, integer|DateTime $startOn )
Filter out entries before the specified date |
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 Entry Status |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeStopBefore( Illuminate\Database\Eloquent\Builder $query, integer|DateTime $stopBefore )
Filter out entries after the specified date |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeUrlTitle( Illuminate\Database\Eloquent\Builder $query, dynamic $urlTitle )
Filter by URL Title |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeUsername( Illuminate\Database\Eloquent\Builder $query, dynamic $username )
Filter by Member Username |
public
Illuminate\Database\Eloquent\Builder
|
|
public
Illuminate\Database\Eloquent\Builder
|
|
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
Illuminate\Database\Eloquent\Builder
|
#
scopeAuthorIdString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Author ID string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeCategoryString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Category 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
|
#
scopeChannelString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Channel string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeEntryIdString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Entry ID string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeFixedOrderString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Fixed Order string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeGroupIdString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Member Group ID string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowExpiredString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Show Expired string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowFutureEntriesString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Show Future Entries string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeShowPagesString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Show Pages string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeStatusString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Status string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeStickyString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Sticky string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeUrlTitleString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by URL Title string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeUsernameString( Illuminate\Database\Eloquent\Builder $query, string $string )
Filter by Username string parameter |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeWithCategories( Illuminate\Database\Eloquent\Builder $query, Closure $callback = null )
Eager load categories |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeWithCategoryFields( Illuminate\Database\Eloquent\Builder $query, Closure $callback = null )
Eager load categories with custom fields |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeWithAuthor( Illuminate\Database\Eloquent\Builder $query, Closure $callback = null )
Eager load author |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeWithAuthorFields( Illuminate\Database\Eloquent\Builder $query, Closure $callback = null )
Eager load author with custom fields |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeWithComments( Illuminate\Database\Eloquent\Builder $query, Closure $callback = null )
Eager load author |
public
Illuminate\Database\Eloquent\Builder
|
#
scopeDynamicParameters( Illuminate\Database\Eloquent\Builder $query, array $allowedParameters, array $request )
Dynamically apply scopes |
public
Illuminate\Database\Eloquent\Builder
|
|
public
Illuminate\Database\Eloquent\Builder
|
|
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, array $request = array() )
Apply an array of parameters |
(),
(),
(),
()
|
(),
(),
(),
(),
()
|
protected
string
|
$table | 'channel_titles' |
|
protected
string
|
$primaryKey | 'entry_id' |
|
protected static
array
|
$globalHidden | [
'chan',
'site_id',
'forum_topic_id',
'ip_address',
'versioning_enabled',
'comments',
] |
#
The attributes that should be hidden for arrays. |
protected static
array
|
$globalVisible | [] |
#
The attributes that should be visible in arrays. |
protected
string
|
$collectionClass | '\\rsanchez\\Deep\\Collection\\TitleCollection' |
#
The class used when creating a new Collection |
protected static
|
$channelRepository |
|
#
Global Channel Repository |
protected static
|
$siteRepository |
|
#
Global Site Repository |
public static
rsanchez\Deep\Hydrator\Factory
|
$hydratorFactory |
|
#
Hydrator Factory |
protected
array
|
$extraHydrators | array() |
#
List of extra hydrators to load (e.g. parents or siblings) |
protected
string|null
|
$defaultChannelName |
|
#
When extending this class, set this property to automatically load from the specified channel |