Beta version

class FolderRepository extends EntityRepository

[email protected]}

Constants

NODE_ALIAS

Alias for DQL and Query builder representing Node relation.

NODESSOURCES_ALIAS

Alias for DQL and Query builder representing NodesSources relation.

TRANSLATION_ALIAS

Alias for DQL and Query builder representing Translation relation.

TAG_ALIAS

Alias for DQL and Query builder representing Tag relation.

Methods

integer
countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

array|Paginator
searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

No description

int
countSearchBy(string $pattern, array $criteria = array())

No description

findOrCreateByPath(string $folderPath)

Find a folder according to the given path or create it.

Folder|null
findByPath(string $folderPath)

Find a folder according to the given path.

array
findAllChildrenFromFolder(Folder $folder, Translation $translation = null)

No description

mixed|null
findOneByFolderName($folderName, Translation $translation = null)

No description

array
findAllChildrenIdFromFolder(Folder $folder)

No description

array
findChildrenIdFromFolder(Folder $folder)

No description

array
findByDocumentAndTranslation(Document $document, Translation $translation = null)

No description

array
findByParentAndTranslation(Folder $parent = null, Translation $translation = null)

No description

Details

in EntityRepository at line 365
integer countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

Parameters

Criteria|mixed|array $criteria or array

Return Value

integer

in EntityRepository at line 460
array|Paginator searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria
array $orders
integer $limit
integer $offset

Return Value

array|Paginator

at line 260
int countSearchBy(string $pattern, array $criteria = array())

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria

Return Value

int

at line 54
Folder findOrCreateByPath(string $folderPath)

Find a folder according to the given path or create it.

Parameters

string $folderPath

Return Value

Folder

at line 108
Folder|null findByPath(string $folderPath)

Find a folder according to the given path.

Parameters

string $folderPath

Return Value

Folder|null

at line 125
array findAllChildrenFromFolder(Folder $folder, Translation $translation = null)

Parameters

Folder $folder
Translation $translation

Return Value

array

at line 156
mixed|null findOneByFolderName($folderName, Translation $translation = null)

Parameters

$folderName
Translation $translation

Return Value

mixed|null

Exceptions

NonUniqueResultException

at line 182
array findAllChildrenIdFromFolder(Folder $folder)

Parameters

Folder $folder

Return Value

array

at line 197
array findChildrenIdFromFolder(Folder $folder)

Parameters

Folder $folder

Return Value

array

at line 282
array findByDocumentAndTranslation(Document $document, Translation $translation = null)

Parameters

Document $document
Translation $translation

Return Value

array

at line 312
array findByParentAndTranslation(Folder $parent = null, Translation $translation = null)

Parameters

Folder $parent
Translation $translation

Return Value

array