Method | Description | |
---|---|---|
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 ( ) : |
||
return |
public findById ( $id ) : |
||
$id | number The id of the tag | |
return |
public findByName ( $name ) : |
||
$name | ||
return |
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 |
return |
public getFieldDescriptor ( string $key ) : Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor | ||
$key | string | The key of the FieldDescriptor to return |
return | Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor |
public getFieldDescriptors ( ) : Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor[] | ||
return | Sulu\Component\Rest\ListBuilder\FieldDescriptor\DoctrineFieldDescriptor[] |
public resolveTagIds ( $tagIds ) : array | ||
$tagIds | ||
return | array |
public resolveTagNames ( $tagNames ) : array | ||
$tagNames | ||
return | array |