프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$contactEntityName | |||
$fieldDescriptors | Describes the fields, which are handled by this controller. | ||
$tagEntityName | |||
$userEntityName |
메소드 | 설명 | |
---|---|---|
__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 ) |
메소드 | 설명 | |
---|---|---|
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 ( ) : |
||
리턴 |
public findById ( $id ) : |
||
$id | number The id of the tag | |
리턴 |
public findByName ( $name ) : |
||
$name | ||
리턴 |
public resolveTagIds ( $tagIds ) : array | ||
$tagIds | ||
리턴 | array |
public resolveTagNames ( $tagNames ) : array | ||
$tagNames | ||
리턴 | array |
protected DoctrineFieldDescriptor[],Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor $fieldDescriptors | ||
리턴 |