Method | Description | |
---|---|---|
activity ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | Gets the activity objects for this entity. | |
fullTextSearchQuery ( string[] $fieldsToSearch, string[] $terms, $wheres = [] ) : mixed | Perform a full-text search on this entity. | |
getEntityInstance ( $type ) : |
Get an instance of an entity of the given type. | |
getShortName ( integer $length = 25 ) : string | Gets a limited-length version of the entities name. | |
getType ( ) : mixed | Get entity type. | |
hasActiveRestriction ( $role_id, $action ) : boolean | Check if this entity has live (active) restrictions in place. | |
hasRestriction ( $role_id, $action ) : boolean | Check if this entity has a specific restriction set against it. | |
isA ( $type ) : boolean | Allows checking of the exact class, Used to check entity type. | |
jointPermissions ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | Get the entity jointPermissions this is connected to. | |
matches ( $entity ) : boolean | Compares this entity to another given entity. | |
matchesOrContains ( |
Checks if an entity matches or contains another given entity. | |
permissions ( ) | Get this entities restrictions. | |
tags ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | Get the Tag models that have been user assigned to this entity. | |
views ( ) | Get View objects for this entity. |
public activity ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
return | Illuminate\Database\Eloquent\Relations\MorphMany |
public fullTextSearchQuery ( string[] $fieldsToSearch, string[] $terms, $wheres = [] ) : mixed | ||
$fieldsToSearch | string[] | |
$terms | string[] | |
return | mixed |
public static getEntityInstance ( $type ) : |
||
$type | ||
return |
public getShortName ( integer $length = 25 ) : string | ||
$length | integer | |
return | string |
public hasActiveRestriction ( $role_id, $action ) : boolean | ||
$role_id | ||
$action | ||
return | boolean |
public hasRestriction ( $role_id, $action ) : boolean | ||
$role_id | ||
$action | ||
return | boolean |
public jointPermissions ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
return | Illuminate\Database\Eloquent\Relations\MorphMany |
public matchesOrContains ( |
||
$entity | ||
return | boolean |
public tags ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
return | Illuminate\Database\Eloquent\Relations\MorphMany |