Свойство | Тип | Описание | |
---|---|---|---|
$table |
Метод | Описание | |
---|---|---|
attachTags ( integer $item_id, array $tag_ids ) : stdClass | attach tags | |
deleteFlowFlag ( $tag_id ) : boolean | Delete a flow tag settings. | |
detachTags ( integer $item_id, array $tag_ids ) : stdClass | detach tags | |
firstOrCreateByName ( string $name ) : Illuminate\Database\Eloquent\Model | get a tag or Create a tag. | |
getAll ( ) : Collection | get all tags. | |
getAllFlowTags ( ) : Collection | get all flow tags. | |
getAllUsedTags ( ) : array | get all used tags. | |
getById ( integer $id ) : void | get a tag by tag id. | |
getByItemId ( integer $item_id ) : void | get tags by item_id. | |
getByName ( string $name ) : void | get a tag by tag name. | |
getTableName ( ) : string | Get a table name. | |
syncTags ( object $item, array $tag_ids ) : void | sync tags | |
updateFlowFlag ( integer $tag_id, boolean $flag = true ) : Illuminate\Database\Eloquent\Model | Update a tag's flow_flag. |
public attachTags ( integer $item_id, array $tag_ids ) : stdClass | ||
$item_id | integer | |
$tag_ids | array | |
Результат | stdClass |
public deleteFlowFlag ( $tag_id ) : boolean | ||
$tag_id | int tag_id | |
Результат | boolean |
public detachTags ( integer $item_id, array $tag_ids ) : stdClass | ||
$item_id | integer | |
$tag_ids | array | |
Результат | stdClass |
public firstOrCreateByName ( string $name ) : Illuminate\Database\Eloquent\Model | ||
$name | string | |
Результат | Illuminate\Database\Eloquent\Model |
public getAllFlowTags ( ) : Collection | ||
Результат | Collection |
public getAllUsedTags ( ) : array | ||
Результат | array |
public getByItemId ( integer $item_id ) : void | ||
$item_id | integer | |
Результат | void |
public updateFlowFlag ( integer $tag_id, boolean $flag = true ) : Illuminate\Database\Eloquent\Model | ||
$tag_id | integer | |
$flag | boolean | |
Результат | Illuminate\Database\Eloquent\Model |