PHP 클래스 Sulu\Bundle\TagBundle\Tag\TagManager

상속: implements Sulu\Bundle\TagBundle\Tag\TagManagerInterface
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$contactEntityName
$fieldDescriptors Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor\DoctrineFieldDescriptor[] 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 ( ) : Tag[] Loads all the tags managed in this system.
findById ( $id ) : Tag Loads the tag with the given id.
findByName ( $name ) : Tag Loads the tag with the given name.
findOrCreateByName ( $name, $userId )
getFieldDescriptor ( $key )
getFieldDescriptors ( )
merge ( number $srcTagIds, number $destTagId ) : Tag 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 ( )

메소드 상세

__construct() 공개 메소드

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

delete() 공개 메소드

Deletes the given Tag.
public delete ( number $id )
$id number The tag to delete

findAll() 공개 메소드

Loads all the tags managed in this system.
public findAll ( ) : Tag[]
리턴 Sulu\Bundle\TagBundle\Entity\Tag[]

findById() 공개 메소드

Loads the tag with the given id.
public findById ( $id ) : Tag
$id number The id of the tag
리턴 Sulu\Bundle\TagBundle\Entity\Tag

findByName() 공개 메소드

Loads the tag with the given name.
public findByName ( $name ) : Tag
$name
리턴 Sulu\Bundle\TagBundle\Entity\Tag

findOrCreateByName() 공개 메소드

public findOrCreateByName ( $name, $userId )

getFieldDescriptor() 공개 메소드

public getFieldDescriptor ( $key )

getFieldDescriptors() 공개 메소드

public getFieldDescriptors ( )

merge() 공개 메소드

The source tag will be deleted.
public merge ( number $srcTagIds, number $destTagId ) : Tag
$srcTagIds number The source tags, which will be removed afterwards
$destTagId number The destination tag, which will replace the source tag
리턴 Sulu\Bundle\TagBundle\Entity\Tag The new Tag, which is valid for all given tags

resolveTagIds() 공개 메소드

Resolves tag ids to names.
public resolveTagIds ( $tagIds ) : array
$tagIds
리턴 array

resolveTagNames() 공개 메소드

Resolves tag names to ids.
public resolveTagNames ( $tagNames ) : array
$tagNames
리턴 array

save() 공개 메소드

public save ( $data, $userId, $id = null )

프로퍼티 상세

$contactEntityName 보호되어 있는 정적으로 프로퍼티

protected static $contactEntityName

$fieldDescriptors 보호되어 있는 프로퍼티

Describes the fields, which are handled by this controller.
protected DoctrineFieldDescriptor[],Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor $fieldDescriptors
리턴 Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor\DoctrineFieldDescriptor[]

$tagEntityName 보호되어 있는 정적으로 프로퍼티

protected static $tagEntityName

$userEntityName 보호되어 있는 정적으로 프로퍼티

protected static $userEntityName