Метод | Описание | |
---|---|---|
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 | ||
Результат | Illuminate\Database\Eloquent\Relations\MorphMany |
public fullTextSearchQuery ( string[] $fieldsToSearch, string[] $terms, $wheres = [] ) : mixed | ||
$fieldsToSearch | string[] | |
$terms | string[] | |
Результат | mixed |
public static getEntityInstance ( $type ) : |
||
$type | ||
Результат |
public getShortName ( integer $length = 25 ) : string | ||
$length | integer | |
Результат | string |
public hasActiveRestriction ( $role_id, $action ) : boolean | ||
$role_id | ||
$action | ||
Результат | boolean |
public hasRestriction ( $role_id, $action ) : boolean | ||
$role_id | ||
$action | ||
Результат | boolean |
public jointPermissions ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
Результат | Illuminate\Database\Eloquent\Relations\MorphMany |
public matchesOrContains ( |
||
$entity | ||
Результат | boolean |
public tags ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
Результат | Illuminate\Database\Eloquent\Relations\MorphMany |