Метод | Описание | |
---|---|---|
delete ( number $id ) | Deletes the given Tag. | |
findAll ( ) : |
Loads all the tags managed in this system. | |
findById ( $id ) : |
Loads the tag with the given id. | |
findByName ( $name ) : |
Loads the tag with the given name. | |
findOrCreateByName ( string $name, integer $userId ) : |
Loads the tag with the given name, or creates it, if it does not exist. | |
getFieldDescriptor ( string $key ) : Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor | Returns the FieldDescriptor for the given key. | |
getFieldDescriptors ( ) : Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor[] | Returns the FieldDescriptors for the products. | |
merge ( array $srcTagIds, number $destTagId ) : |
Merges the source tag into the destination tag. | |
resolveTagIds ( $tagIds ) : array | Resolves tag ids to names. | |
resolveTagNames ( $tagNames ) : array | Resolves tag names to ids. | |
save ( array $data, integer $userId, number | null $id = null ) | Saves the given Tag. |
public findAll ( ) : |
||
Результат |
public findById ( $id ) : |
||
$id | number The id of the tag | |
Результат |
public findByName ( $name ) : |
||
$name | ||
Результат |
public findOrCreateByName ( string $name, integer $userId ) : |
||
$name | string | The name to find or create |
$userId | integer | The id of the user who tries to find a tag |
Результат |
public getFieldDescriptor ( string $key ) : Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor | ||
$key | string | The key of the FieldDescriptor to return |
Результат | Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor |
public getFieldDescriptors ( ) : Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor[] | ||
Результат | Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor[] |
public resolveTagIds ( $tagIds ) : array | ||
$tagIds | ||
Результат | array |
public resolveTagNames ( $tagNames ) : array | ||
$tagNames | ||
Результат | array |