Documentation

Gallery

Tags
ORM\Entity
ORM\Table

(name="gallery")

Table of Contents

$alias  : string
$created  : DateTime
$description  : string
$id  : int
$images  : PersistentCollection<int, Image>
$state  : bool
$tag  : Tag
$title  : string
$updated  : DateTime
__construct()  : mixed
getAlias()  : string
Returns gallery alias
getCreated()  : DateTime
Returns gallery created date
getDescription()  : string
Returns gallery description
getId()  : int
Return gallery ID
getImages()  : PersistentCollection<int, Image>
Returns images associated to this gallery
getState()  : bool
Returns gallery state
getTag()  : Tag
Returns gallery tag
getThumbnail()  : Image|null
getTitle()  : string
Returns gallery title
getUpdated()  : DateTime
Returns gallery updated date
setAlias()  : self
Sets gallery alias
setCreated()  : self
Sets gallery created date
setDescription()  : self
Sets gallery description
setState()  : self
Sets gallery state
setTag()  : self
Sets gallery tag
setTitle()  : self
Sets gallery title
setUpdated()  : self
Sets gallery updated date

Properties

$alias

protected string $alias
Tags
ORM\Column

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

$created

protected DateTime $created
Tags
ORM\Column

(type="datetime", nullable=false)

$description

protected string $description
Tags
ORM\Column

(type="text", nullable=true)

$id

protected int $id
Tags
ORM\Id
ORM\Column

(type="integer")

ORM\GeneratedValue

$images

protected PersistentCollection<int, Image> $images
Tags
ORM\OneToMany

(targetEntity="Image", mappedBy="gallery")

ORM\OrderBy

({"ordering" = "ASC"})

$state

protected bool $state
Tags
ORM\Column

(type="boolean")

$tag

protected Tag $tag
Tags
ORM\ManyToOne

(targetEntity="Tag")

ORM\JoinColumn

(name="tag_id", referencedColumnName="id")

$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 $description = "" ][, string $alias = "" ][, bool $state = true ]) : mixed
Parameters
$title : string = ""
$description : string = ""
$alias : string = ""
$state : bool = true
Return values
mixed

getAlias()

Returns gallery alias

public getAlias() : string
Return values
string

getCreated()

Returns gallery created date

public getCreated() : DateTime
Return values
DateTime

getDescription()

Returns gallery description

public getDescription() : string
Return values
string

getId()

Return gallery ID

public getId() : int
Return values
int

getImages()

Returns images associated to this gallery

public getImages() : PersistentCollection<int, Image>
Return values
PersistentCollection<int, Image>

getState()

Returns gallery state

public getState() : bool
Return values
bool

getTag()

Returns gallery tag

public getTag() : Tag
Return values
Tag

getTitle()

Returns gallery title

public getTitle() : string
Return values
string

getUpdated()

Returns gallery updated date

public getUpdated() : DateTime
Return values
DateTime

setAlias()

Sets gallery alias

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

setCreated()

Sets gallery created date

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

setDescription()

Sets gallery description

public setDescription(string $description) : self
Parameters
$description : string
Return values
self

setState()

Sets gallery state

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

setTag()

Sets gallery tag

public setTag(Tag $tag) : self
Parameters
$tag : Tag
Return values
self

setTitle()

Sets gallery title

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

setUpdated()

Sets gallery updated date

public setUpdated() : self
Return values
self

Search results