abstract class AbstractFile implements HierarchyInterface (View source)

This class represents an abstract "file".

Properties

protected $id
protected $node
protected $nodename
protected $parent
protected $created
protected $createdBy

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.

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