class Folder extends AbstractFile (View source)

This class represents a Folder in the repository, aka nt:folder.

Properties

protected $id from AbstractFile
protected $node from AbstractFile
protected $nodename from AbstractFile
protected $parent from AbstractFile
protected $created from AbstractFile
protected $createdBy from AbstractFile
protected ArrayCollection $children
protected AbstractFile $child

Methods

$this
setId(string $id)

Set the id (the PHPCR path).

string
getId()

Get for id (the PHPCR path).

string
getNodename()

The node name of the file.

$this
setNodename(string $name)

Set the node name of the file. (only mutable on new document before the persist).

object|null
getParentDocument()

The parent document of this document. Could be a Folder.

$this
setParentDocument(object $parent)

Set the parent document of this document.

getCreated()

getter for created The created date is assigned by the content repository.

string
getCreatedBy()

getter for createdBy The createdBy is assigned by the content repository This is the name of the (jcr) user that created the node.

string
__toString()

String representation.

Collection
getChildren()

The children File documents of this Folder document.

$this
setChildren(ArrayCollection $children)

Sets the children of this Folder document.

$this
addChild(HierarchyInterface $child)

Add a child document that resolves to nt:hierarchyNode (like the File) to this document that resolves to nt:folder (like the Folder).

Details

$this setId(string $id)

Set the id (the PHPCR path).

Parameters

string $id of the node

Return Value

$this

string getId()

Get for id (the PHPCR path).

Return Value

string id of the document.

string getNodename()

The node name of the file.

Return Value

string

$this setNodename(string $name)

Set the node name of the file. (only mutable on new document before the persist).

Parameters

string $name the name of the file

Return Value

$this

object|null getParentDocument()

The parent document of this document. Could be a Folder.

Return Value

object|null

$this setParentDocument(object $parent)

Set the parent document of this document.

Parameters

object $parent

Return Value

$this

DateTime getCreated()

getter for created The created date is assigned by the content repository.

Return Value

DateTime created date of the file

string getCreatedBy()

getter for createdBy The createdBy is assigned by the content repository This is the name of the (jcr) user that created the node.

Return Value

string name of the (jcr) user who created the file

string __toString()

String representation.

Return Value

string

Collection getChildren()

The children File documents of this Folder document.

Return Value

Collection list of File documents

$this setChildren(ArrayCollection $children)

Sets the children of this Folder document.

Parameters

ArrayCollection $children ArrayCollection

Return Value

$this

$this addChild(HierarchyInterface $child)

Add a child document that resolves to nt:hierarchyNode (like the File) to this document that resolves to nt:folder (like the Folder).

Parameters

HierarchyInterface $child HierarchyInterface

Return Value

$this