Property | Type | Description | |
---|---|---|---|
$contactEntityName | |||
$fieldDescriptors | Describes the fields, which are handled by this controller. | ||
$tagEntityName | |||
$userEntityName |
Method | Description | |
---|---|---|
__construct ( Sulu\Bundle\TagBundle\Tag\TagRepositoryInterface $tagRepository, Sulu\Component\Security\Authentication\UserRepositoryInterface $userRepository, Doctrine\Common\Persistence\ObjectManager $em, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
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 ( $name, $userId ) | ||
getFieldDescriptor ( $key ) | ||
getFieldDescriptors ( ) | ||
merge ( number $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 ( $data, $userId, $id = null ) |
Method | Description | |
---|---|---|
initializeFieldDescriptors ( ) |
public __construct ( Sulu\Bundle\TagBundle\Tag\TagRepositoryInterface $tagRepository, Sulu\Component\Security\Authentication\UserRepositoryInterface $userRepository, Doctrine\Common\Persistence\ObjectManager $em, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
$tagRepository | Sulu\Bundle\TagBundle\Tag\TagRepositoryInterface | |
$userRepository | Sulu\Component\Security\Authentication\UserRepositoryInterface | |
$em | Doctrine\Common\Persistence\ObjectManager | |
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public findAll ( ) : |
||
return |
public findById ( $id ) : |
||
$id | number The id of the tag | |
return |
public findByName ( $name ) : |
||
$name | ||
return |
public resolveTagIds ( $tagIds ) : array | ||
$tagIds | ||
return | array |
public resolveTagNames ( $tagNames ) : array | ||
$tagNames | ||
return | array |
protected DoctrineFieldDescriptor[],Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor $fieldDescriptors | ||
return |