class Folder extends AbstractDateTimedPositioned (View source)

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

Traits

Trait which describe a positioned entity

Properties

protected $id from AbstractEntity
protected DateTime $createdAt from AbstractDateTimed
protected DateTime $updatedAt from AbstractDateTimed
protected $position from PositionedTrait
protected $parent
protected $documents

Methods

int
getId()

No description

setId(int $id)

No description

getCreatedAt()

No description

setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

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() deprecated

No description

setFolderName(string $folderName)

No description

setName(string $folderName) deprecated

No description

string
getDirtyFolderName()

No description

setDirtyFolderName(string $dirtyFolderName)

No description

getHandler()

No description

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

DateTime getCreatedAt()

Return Value

DateTime

AbstractEntity setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

AbstractEntity

DateTime getUpdatedAt()

Return Value

DateTime

AbstractEntity setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

AbstractEntity

preUpdate()

prePersist()

AbstractEntity resetDates()

Set creation and update date to now.

Return Value

AbstractEntity

float getPosition()

Return Value

float

$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

Folder getParent()

Return Value

Folder

$this setParent(Folder $parent = null)

Parameters

Folder $parent

Return Value

$this

ArrayCollection getChildren()

Return Value

ArrayCollection

$this addChild(Folder $child)

Parameters

Folder $child

Return Value

$this

ArrayCollection getDocuments()

Return Value

ArrayCollection

$this addDocument(Document $document)

Parameters

Document $document

Return Value

$this

$this removeDocument(Document $document)

Parameters

Document $document

Return Value

$this

boolean getVisible()

Return Value

boolean

Folder setVisible(boolean $visible)

Parameters

boolean $visible

Return Value

Folder

__construct()

Create a new Folder.

mixed getTranslatedFolders()

Return Value

mixed

Collection getTranslatedFoldersByTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

Collection

Folder setTranslatedFolders(mixed $translatedFolders)

Parameters

mixed $translatedFolders

Return Value

Folder

string getFolderName()

Return Value

string

string getName() deprecated

deprecated Use getFolderName() method instead to differenciate from FolderTranslation’ name.

Return Value

string

Folder setFolderName(string $folderName)

Parameters

string $folderName

Return Value

Folder

Folder setName(string $folderName) deprecated

deprecated Use setFolderName() method instead to differenciate from FolderTranslation’ name.

Parameters

string $folderName

Return Value

Folder

string getDirtyFolderName()

Return Value

string

Folder setDirtyFolderName(string $dirtyFolderName)

Parameters

string $dirtyFolderName

Return Value

Folder

FolderHandler getHandler()

Return Value

FolderHandler