Documentation

Article

Tags
ORM\Entity
ORM\Table

(name="article")

Table of Contents

$alias  : string
$content  : string
$created  : DateTime
$id  : int
$state  : bool
$title  : string
$updated  : DateTime
__construct()  : mixed
Creates new instance of Article class.
getAlias()  : string
Returns article alias.
getContent()  : string
Returns article content.
getCreated()  : DateTime
Returns article created date
getId()  : int
Returns article ID.
getState()  : bool
Returns article state
getTitle()  : string
Returns article title.
getUpdated()  : DateTime
Returns article updated date.
setAlias()  : self
Sets article alias.
setContent()  : self
Sets article content.
setCreated()  : self
Sets article created date
setState()  : self
Sets article state
setTitle()  : self
Sets article title.
setUpdated()  : self
Sets article updated date.

Properties

$alias

protected string $alias
Tags
ORM\Column

(type="string", unique=true, length=191)

$content

protected string $content
Tags
ORM\Column

(type="string", nullable=true)

$created

protected DateTime $created
Tags
ORM\Column

(type="datetime", nullable=false)

$id

protected int $id
Tags
ORM\Id
ORM\Column

(type="integer")

ORM\GeneratedValue

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

Creates new instance of Article class.

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

getAlias()

Returns article alias.

public getAlias() : string
Return values
string

getContent()

Returns article content.

public getContent() : string
Return values
string

getCreated()

Returns article created date

public getCreated() : DateTime
Return values
DateTime

getId()

Returns article ID.

public getId() : int
Return values
int

getState()

Returns article state

public getState() : bool
Return values
bool

getTitle()

Returns article title.

public getTitle() : string
Return values
string

getUpdated()

Returns article updated date.

public getUpdated() : DateTime
Return values
DateTime

setAlias()

Sets article alias.

public setAlias(string $alias) : self
Parameters
$alias : string
Return values
self

setContent()

Sets article content.

public setContent(string $content) : self
Parameters
$content : string
Return values
self

setCreated()

Sets article created date

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

setState()

Sets article state

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

setTitle()

Sets article title.

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

setUpdated()

Sets article updated date.

public setUpdated() : self
Return values
self

Search results