Documentation

File

Tags
ORM\Entity
ORM\Table

(name="file")

Table of Contents

$created  : DateTime
$id  : int
$path  : string
$state  : bool
$title  : string
$updated  : DateTime
__construct()  : mixed
getCreated()  : DateTime
Returns article created date
getId()  : int
Returns file ID
getPath()  : string
Returns file path
getState()  : bool
Returns file state
getTitle()  : string
Returns file title
getUpdated()  : DateTime
Returns file updated date
setCreated()  : self
Sets article created date
setPath()  : self
Sets path to file
setState()  : self
Sets file state
setTitle()  : self
Sets file title
setUpdated()  : self
Sets file updated date

Properties

$created

protected DateTime $created
Tags
ORM\Column

(type="datetime", nullable=false)

$id

protected int $id
Tags
ORM\Id
ORM\Column

(type="integer")

ORM\GeneratedValue

$path

protected string $path
Tags
ORM\Column

(type="string", length=512)

$state

protected bool $state
Tags
ORM\Column

(type="boolean")

$title

protected string $title
Tags
ORM\Column

(type="string", length=512)

$updated

protected DateTime $updated
Tags
ORM\Column

(type="datetime", nullable=false)

ORM\Version

Methods

__construct()

public __construct([string $title = "" ], string $path[, bool $state = true ]) : mixed
Parameters
$title : string = ""
$path : string
$state : bool = true
Return values
mixed

getCreated()

Returns article created date

public getCreated() : DateTime
Return values
DateTime

getId()

Returns file ID

public getId() : int
Return values
int

getPath()

Returns file path

public getPath() : string
Return values
string

getState()

Returns file state

public getState() : bool
Return values
bool

getTitle()

Returns file title

public getTitle() : string
Return values
string

getUpdated()

Returns file updated date

public getUpdated() : DateTime
Return values
DateTime

setCreated()

Sets article created date

public setCreated(DateTime $created) : self
Parameters
$created : DateTime
Return values
self

setPath()

Sets path to file

public setPath(string $path) : self
Parameters
$path : string
Return values
self

setState()

Sets file state

public setState(bool $state) : self
Parameters
$state : bool
Return values
self

setTitle()

Sets file title

public setTitle(string $title) : self
Parameters
$title : string
Return values
self

setUpdated()

Sets file updated date

public setUpdated() : self
Return values
self

Search results