Beta version

class Folder extends AbstractDateTimedPositioned

Folders entity represent a directory on server with datetime and naming.

Traits

Trait which describe a positioned entity

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getCreatedAt()

No description

$this
setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

$this
setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

$this
resetDates()

Set creation and update date to now.

float
getPosition()

No description

$this
setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

getParent()

No description

$this
setParent(Folder $parent = null)

No description

ArrayCollection
getChildren()

No description

$this
addChild(Folder $child)

No description

ArrayCollection
getDocuments()

No description

$this
addDocument(Document $document)

No description

$this
removeDocument(Document $document)

No description

boolean
getVisible()

No description

setVisible(boolean $visible)

No description

__construct()

Create a new Folder.

mixed
getTranslatedFolders()

No description

Collection
getTranslatedFoldersByTranslation(Translation $translation)

No description

setTranslatedFolders(mixed $translatedFolders)

No description

string
getFolderName()

No description

string
getName()

No description

setFolderName(string $folderName)

No description

setName(string $folderName)

No description

string
getDirtyFolderName()

No description

setDirtyFolderName(string $dirtyFolderName)

No description

getHandler()

No description

Details

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

in AbstractDateTimed at line 53
DateTime getCreatedAt()

Return Value

DateTime

in AbstractDateTimed at line 63
$this setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

$this

in AbstractDateTimed at line 78
DateTime getUpdatedAt()

Return Value

DateTime

in AbstractDateTimed at line 88
$this setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

$this

in AbstractDateTimed at line 98
preUpdate()

in AbstractDateTimed at line 105
prePersist()

in AbstractDateTimed at line 115
$this resetDates()

Set creation and update date to now.

Return Value

$this

in PositionedTrait at line 45
float getPosition()

Return Value

float

in PositionedTrait at line 58
$this setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Parameters

float $newPosition

Return Value

$this

at line 78
Folder getParent()

Return Value

Folder

at line 87
$this setParent(Folder $parent = null)

Parameters

Folder $parent

Return Value

$this

at line 103
ArrayCollection getChildren()

Return Value

ArrayCollection

at line 112
$this addChild(Folder $child)

Parameters

Folder $child

Return Value

$this

at line 136
ArrayCollection getDocuments()

Return Value

ArrayCollection

at line 145
$this addDocument(Document $document)

Parameters

Document $document

Return Value

$this

at line 158
$this removeDocument(Document $document)

Parameters

Document $document

Return Value

$this

at line 170
boolean getVisible()

Return Value

boolean

at line 179
Folder setVisible(boolean $visible)

Parameters

boolean $visible

Return Value

Folder

at line 188
__construct()

Create a new Folder.

at line 198
mixed getTranslatedFolders()

Return Value

mixed

at line 207
Collection getTranslatedFoldersByTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

Collection

at line 219
Folder setTranslatedFolders(mixed $translatedFolders)

Parameters

mixed $translatedFolders

Return Value

Folder

at line 228
string getFolderName()

Return Value

string

at line 237
string getName()

Return Value

string

at line 246
Folder setFolderName(string $folderName)

Parameters

string $folderName

Return Value

Folder

at line 258
Folder setName(string $folderName)

Parameters

string $folderName

Return Value

Folder

at line 266
string getDirtyFolderName()

Return Value

string

at line 275
Folder setDirtyFolderName(string $dirtyFolderName)

Parameters

string $dirtyFolderName

Return Value

Folder

at line 285
FolderHandler getHandler()

Return Value

FolderHandler