PHP Class Networking\InitCmsBundle\Model\Page

Author: Yorkie Chadwick ([email protected])
Inheritance: implements Networking\InitCmsBundle\Model\PageInterface
Afficher le fichier Open project: networking/init-cms-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$activeFrom Datetime
$activeTo Datetime
$alias Networking\InitCmsBundle\Model\PageInterface
$allChildren array
$children array
$contentRoute Networking\InitCmsBundle\Model\ContentRouteInterface
$createdAt Datetime
$id integer
$isHome boolean
$layoutBlock Doctrine\Common\Collections\ArrayCollection
$level
$locale string
$menuItem Doctrine\Common\Collections\ArrayCollection
$metaDescription string
$metaKeyword string
$metaTitle string
$oldTitle string
$originals Doctrine\Common\Collections\ArrayCollection
$pageName string
$parent Networking\InitCmsBundle\Model\PageInterface | null
$parents array
$path string
$snapshotClassType string
$snapshots Doctrine\Common\Collections\ArrayCollection
$status string
$translations Doctrine\Common\Collections\ArrayCollection
$updatedAt Datetime
$url string
$visibility string

Méthodes publiques

Méthode Description
__construct ( )
__toString ( ) : string
addChildren ( Networking\InitCmsBundle\Model\PageInterface $children )
addLayoutBlock ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock ) Add layout block
addTranslation ( Networking\InitCmsBundle\Model\PageInterface $page )
convertAliasToInteger ( ) : integer
convertChildrenToIntegerArray ( ) : array
convertIntegerToPage ( $id )
convertOriginalsToIntegerArray ( ) : array
convertParentToInteger ( ) : integer
convertParentsToArray ( ) : array
convertTranslationsToIntegerArray ( ) : array
getActiveEnd ( ) : Datetime
getActiveFrom ( ) : DateTime Get activeFrom
getActiveStart ( ) : DateTime Get activeFrom
getActiveTo ( ) : Datetime
getAdminTitle ( ) : string
getAlias ( ) : Networking\InitCmsBundle\Model\PageInterface
getAliasFullPath ( ) : string
getAllChildren ( array &$children = [] ) : array
getAllTranslations ( ) : ArrayCollection
getChildren ( ) : mixed
getCreatedAt ( ) : Datetime Get createdAt
getCurrentVersion ( ) : integer
getDirectTranslationFor ( Networking\InitCmsBundle\Model\PageInterface $page ) : mixed
getFullPath ( ) : string
getId ( ) : integer Get id
getIsHome ( ) : boolean
getLayoutBlock ( null $zone = null ) : ArrayCollection | Doctrine\Common\Collections\Collection Get menuItem
getLevel ( ) : mixed
getLocale ( ) : string
getMenuItem ( ) : ArrayCollection Get menuItem
getMenuItemByRoot ( $rootId ) : Doctrine\Common\Collections\Collection
getMetaDescription ( ) : string
getMetaKeyword ( ) : string
getMetaTitle ( ) : string Get metaTitle
getOriginals ( ) : ArrayCollection
getPageName ( ) : string Get pageName
getParent ( $level ) : Networking\InitCmsBundle\Model\PageInterface | null
getParents ( ) : array
getPath ( ) : string
getRecursiveTranslations ( array &$translationsArray ) : array Recursively search for all possible translations of this page, either originals of this page, translations of this page or translations of the original of this page.
getResourceId ( ) : integer
getRoute ( ) {@inheritDoc}
getRoutes ( ) {@inheritDoc}
getSnapshot ( ) : mixed | Networking\InitCmsBundle\Model\PageSnapshotInterface
getSnapshotClassType ( ) : mixed | string
getSnapshots ( ) : ArrayCollection
getStatus ( ) : string Get status
getStatusLabel ( ) : string
getStatusList ( ) : array
getTemplate ( ) : string
getTemplateName ( ) : string
getTitle ( ) : string
getTranslatedLocales ( ) : array
getTranslations ( ) : ArrayCollection
getUpdatedAt ( ) : Datetime Get updatedAt
getUrl ( ) : string
getVisibility ( ) : string Get page visibility
getVisibilityList ( ) : array
hasListener ( ) : string
hasPublishedVersion ( )
isActive ( ) : boolean
isDirectTranslation ( Networking\InitCmsBundle\Model\PageInterface $page ) : boolean
isDraft ( ) : boolean
isHome ( ) : boolean
isPublished ( ) : boolean
isReview ( ) : boolean
orderLayoutBlocks ( )
prePersist ( ) Hook on to pre-persist action
preUpdate ( ) Hook on to pre-update action
prepareMenuItemsForSerialization ( ) : ArrayCollection
removeLayoutBlock ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock ) remove content
removeMenuItem ( Networking\InitCmsBundle\Model\MenuItemInterface $menuItem ) remove menuItem
removeTranslation ( Networking\InitCmsBundle\Model\PageInterface $page )
resetLayoutBlock ( ArrayCollection $publishedBlocks ) Remove all layout blocks and replace with those in the serialized page snapshot
setActiveFrom ( $activeFrom ) Set activeFrom
setActiveTo ( Datetime $activeTo )
setAlias ( Networking\InitCmsBundle\Model\PageInterface $alias = null )
setAllChildren ( $children )
setChildren ( $children )
setContentRoute ( Networking\InitCmsBundle\Model\ContentRouteInterface $contentRoute )
setCreatedAt ( Datetime $createdAt ) Set createdAt
setIsHome ( $isHome )
setLayoutBlock ( $layoutBlocks )
setLocale ( string $locale )
setMenuItem ( Networking\InitCmsBundle\Model\MenuItemInterface $menuItem ) Add menuItem
setMetaDescription ( $metaDescription )
setMetaKeyword ( $metaKeyword )
setMetaTitle ( string $title ) Set metaTitle
setOriginal ( Networking\InitCmsBundle\Model\PageInterface $page )
setOriginals ( array $originals )
setPageName ( string $title ) Set pageName
setParent ( Networking\InitCmsBundle\Model\PageInterface $parent = null )
setParents ( array $parents )
setPath ( $path )
setSnapshots ( $snapshots )
setStatus ( string $status ) Set active
setTemplate ( $template )
setTemplateName ( $templateName )
setTranslations ( array $translations )
setUpdatedAt ( ) Set updatedAt
setUrl ( string $url )
setVisibility ( string $visibility ) Set page visibility

Private Methods

Méthode Description
compareSortOrder ( $a, $b ) : integer

Method Details

__construct() public méthode

public __construct ( )

__toString() public méthode

public __toString ( ) : string
Résultat string

addChildren() public méthode

public addChildren ( Networking\InitCmsBundle\Model\PageInterface $children )
$children Networking\InitCmsBundle\Model\PageInterface

addLayoutBlock() public méthode

Add layout block
public addLayoutBlock ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock )
$layoutBlock Networking\InitCmsBundle\Model\LayoutBlockInterface

addTranslation() public méthode

public addTranslation ( Networking\InitCmsBundle\Model\PageInterface $page )
$page Networking\InitCmsBundle\Model\PageInterface

convertAliasToInteger() public méthode

public convertAliasToInteger ( ) : integer
Résultat integer

convertChildrenToIntegerArray() public méthode

public convertChildrenToIntegerArray ( ) : array
Résultat array

convertIntegerToPage() public méthode

public convertIntegerToPage ( $id )
$id

convertOriginalsToIntegerArray() public méthode

public convertOriginalsToIntegerArray ( ) : array
Résultat array

convertParentToInteger() public méthode

public convertParentToInteger ( ) : integer
Résultat integer

convertParentsToArray() public méthode

public convertParentsToArray ( ) : array
Résultat array

convertTranslationsToIntegerArray() public méthode

getActiveEnd() public méthode

public getActiveEnd ( ) : Datetime
Résultat Datetime

getActiveFrom() public méthode

Get activeFrom
public getActiveFrom ( ) : DateTime
Résultat DateTime

getActiveStart() public méthode

Get activeFrom
public getActiveStart ( ) : DateTime
Résultat DateTime

getActiveTo() public méthode

public getActiveTo ( ) : Datetime
Résultat Datetime

getAdminTitle() public méthode

public getAdminTitle ( ) : string
Résultat string

getAlias() public méthode

public getAlias ( ) : Networking\InitCmsBundle\Model\PageInterface
Résultat Networking\InitCmsBundle\Model\PageInterface

getAliasFullPath() public méthode

public getAliasFullPath ( ) : string
Résultat string

getAllChildren() public méthode

public getAllChildren ( array &$children = [] ) : array
$children array
Résultat array

getAllTranslations() public méthode

public getAllTranslations ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

getChildren() public méthode

public getChildren ( ) : mixed
Résultat mixed

getCreatedAt() public méthode

Get createdAt
public getCreatedAt ( ) : Datetime
Résultat Datetime

getCurrentVersion() public méthode

public getCurrentVersion ( ) : integer
Résultat integer

getDirectTranslationFor() public méthode

public getDirectTranslationFor ( Networking\InitCmsBundle\Model\PageInterface $page ) : mixed
$page Networking\InitCmsBundle\Model\PageInterface
Résultat mixed

getFullPath() public méthode

public getFullPath ( ) : string
Résultat string

getId() public méthode

Get id
public getId ( ) : integer
Résultat integer

getIsHome() public méthode

public getIsHome ( ) : boolean
Résultat boolean

getLayoutBlock() public méthode

Get menuItem
public getLayoutBlock ( null $zone = null ) : ArrayCollection | Doctrine\Common\Collections\Collection
$zone null
Résultat Doctrine\Common\Collections\ArrayCollection | Doctrine\Common\Collections\Collection

getLevel() public méthode

public getLevel ( ) : mixed
Résultat mixed

getLocale() public méthode

public getLocale ( ) : string
Résultat string

getMenuItem() public méthode

Get menuItem
public getMenuItem ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

getMenuItemByRoot() public méthode

public getMenuItemByRoot ( $rootId ) : Doctrine\Common\Collections\Collection
$rootId
Résultat Doctrine\Common\Collections\Collection

getMetaDescription() public méthode

public getMetaDescription ( ) : string
Résultat string

getMetaKeyword() public méthode

public getMetaKeyword ( ) : string
Résultat string

getMetaTitle() public méthode

Get metaTitle
public getMetaTitle ( ) : string
Résultat string

getOriginals() public méthode

public getOriginals ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

getPageName() public méthode

Get pageName
public getPageName ( ) : string
Résultat string

getParent() public méthode

public getParent ( $level ) : Networking\InitCmsBundle\Model\PageInterface | null
$level
Résultat Networking\InitCmsBundle\Model\PageInterface | null

getParents() public méthode

public getParents ( ) : array
Résultat array

getPath() public méthode

public getPath ( ) : string
Résultat string

getRecursiveTranslations() public méthode

Recursively search for all possible translations of this page, either originals of this page, translations of this page or translations of the original of this page.
public getRecursiveTranslations ( array &$translationsArray ) : array
$translationsArray array
Résultat array

getResourceId() public méthode

public getResourceId ( ) : integer
Résultat integer

getRoute() public méthode

{@inheritDoc}
public getRoute ( )

getRoutes() public méthode

{@inheritDoc}
public getRoutes ( )

getSnapshot() public méthode

public getSnapshot ( ) : mixed | Networking\InitCmsBundle\Model\PageSnapshotInterface
Résultat mixed | Networking\InitCmsBundle\Model\PageSnapshotInterface

getSnapshotClassType() public méthode

public getSnapshotClassType ( ) : mixed | string
Résultat mixed | string

getSnapshots() public méthode

public getSnapshots ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection $snapshots

getStatus() public méthode

Get status
public getStatus ( ) : string
Résultat string

getStatusLabel() public méthode

public getStatusLabel ( ) : string
Résultat string

getStatusList() public static méthode

public static getStatusList ( ) : array
Résultat array

getTemplate() public méthode

public getTemplate ( ) : string
Résultat string

getTemplateName() public méthode

public getTemplateName ( ) : string
Résultat string

getTitle() public méthode

public getTitle ( ) : string
Résultat string

getTranslatedLocales() public méthode

public getTranslatedLocales ( ) : array
Résultat array

getTranslations() public méthode

public getTranslations ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

getUpdatedAt() public méthode

Get updatedAt
public getUpdatedAt ( ) : Datetime
Résultat Datetime

getUrl() public méthode

public getUrl ( ) : string
Résultat string

getVisibility() public méthode

Get page visibility
public getVisibility ( ) : string
Résultat string

getVisibilityList() public static méthode

public static getVisibilityList ( ) : array
Résultat array

hasListener() public méthode

public hasListener ( ) : string
Résultat string

hasPublishedVersion() public méthode

public hasPublishedVersion ( )

isActive() public méthode

public isActive ( ) : boolean
Résultat boolean

isDirectTranslation() public méthode

public isDirectTranslation ( Networking\InitCmsBundle\Model\PageInterface $page ) : boolean
$page Networking\InitCmsBundle\Model\PageInterface
Résultat boolean

isDraft() public méthode

public isDraft ( ) : boolean
Résultat boolean

isHome() public méthode

public isHome ( ) : boolean
Résultat boolean

isPublished() public méthode

public isPublished ( ) : boolean
Résultat boolean

isReview() public méthode

public isReview ( ) : boolean
Résultat boolean

orderLayoutBlocks() public méthode

public orderLayoutBlocks ( )

prePersist() public méthode

Hook on to pre-persist action
public prePersist ( )

preUpdate() public méthode

Hook on to pre-update action
public preUpdate ( )

prepareMenuItemsForSerialization() public méthode

public prepareMenuItemsForSerialization ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

removeLayoutBlock() public méthode

remove content
public removeLayoutBlock ( Networking\InitCmsBundle\Model\LayoutBlockInterface $layoutBlock )
$layoutBlock Networking\InitCmsBundle\Model\LayoutBlockInterface

removeMenuItem() public méthode

remove menuItem
public removeMenuItem ( Networking\InitCmsBundle\Model\MenuItemInterface $menuItem )
$menuItem Networking\InitCmsBundle\Model\MenuItemInterface

removeTranslation() public méthode

public removeTranslation ( Networking\InitCmsBundle\Model\PageInterface $page )
$page Networking\InitCmsBundle\Model\PageInterface

resetLayoutBlock() public méthode

Remove all layout blocks and replace with those in the serialized page snapshot
public resetLayoutBlock ( ArrayCollection $publishedBlocks )
$publishedBlocks Doctrine\Common\Collections\ArrayCollection

setActiveFrom() public méthode

Set activeFrom
public setActiveFrom ( $activeFrom )
$activeFrom

setActiveTo() public méthode

public setActiveTo ( Datetime $activeTo )
$activeTo Datetime

setAlias() public méthode

public setAlias ( Networking\InitCmsBundle\Model\PageInterface $alias = null )
$alias Networking\InitCmsBundle\Model\PageInterface

setAllChildren() public méthode

public setAllChildren ( $children )
$children

setChildren() public méthode

public setChildren ( $children )
$children

setContentRoute() public méthode

public setContentRoute ( Networking\InitCmsBundle\Model\ContentRouteInterface $contentRoute )
$contentRoute Networking\InitCmsBundle\Model\ContentRouteInterface

setCreatedAt() public méthode

Set createdAt
public setCreatedAt ( Datetime $createdAt )
$createdAt Datetime

setIsHome() public méthode

public setIsHome ( $isHome )
$isHome

setLayoutBlock() public méthode

public setLayoutBlock ( $layoutBlocks )
$layoutBlocks

setLocale() public méthode

public setLocale ( string $locale )
$locale string

setMenuItem() public méthode

Add menuItem
public setMenuItem ( Networking\InitCmsBundle\Model\MenuItemInterface $menuItem )
$menuItem Networking\InitCmsBundle\Model\MenuItemInterface

setMetaDescription() public méthode

public setMetaDescription ( $metaDescription )
$metaDescription

setMetaKeyword() public méthode

public setMetaKeyword ( $metaKeyword )
$metaKeyword

setMetaTitle() public méthode

Set metaTitle
public setMetaTitle ( string $title )
$title string

setOriginal() public méthode

public setOriginal ( Networking\InitCmsBundle\Model\PageInterface $page )
$page Networking\InitCmsBundle\Model\PageInterface

setOriginals() public méthode

public setOriginals ( array $originals )
$originals array

setPageName() public méthode

Set pageName
public setPageName ( string $title )
$title string

setParent() public méthode

public setParent ( Networking\InitCmsBundle\Model\PageInterface $parent = null )
$parent Networking\InitCmsBundle\Model\PageInterface

setParents() public méthode

public setParents ( array $parents )
$parents array

setPath() public méthode

public setPath ( $path )
$path

setSnapshots() public méthode

public setSnapshots ( $snapshots )
$snapshots

setStatus() public méthode

Set active
public setStatus ( string $status )
$status string

setTemplate() public méthode

public setTemplate ( $template )
$template

setTemplateName() public méthode

public setTemplateName ( $templateName )
$templateName

setTranslations() public méthode

public setTranslations ( array $translations )
$translations array

setUpdatedAt() public méthode

Set updatedAt
public setUpdatedAt ( )

setUrl() public méthode

public setUrl ( string $url )
$url string

setVisibility() public méthode

Set page visibility
public setVisibility ( string $visibility )
$visibility string

Property Details

$activeFrom protected_oe property

protected Datetime $activeFrom
Résultat Datetime

$activeTo protected_oe property

protected Datetime $activeTo
Résultat Datetime

$alias protected_oe property

protected PageInterface,Networking\InitCmsBundle\Model $alias
Résultat Networking\InitCmsBundle\Model\PageInterface

$allChildren protected_oe property

protected array $allChildren
Résultat array

$children protected_oe property

protected array $children
Résultat array

$contentRoute protected_oe property

protected ContentRouteInterface,Networking\InitCmsBundle\Model $contentRoute
Résultat Networking\InitCmsBundle\Model\ContentRouteInterface

$createdAt protected_oe property

protected Datetime $createdAt
Résultat Datetime

$id protected_oe property

protected int $id
Résultat integer

$isHome protected_oe property

protected bool $isHome
Résultat boolean

$layoutBlock protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $layoutBlock
Résultat Doctrine\Common\Collections\ArrayCollection

$level protected_oe property

protected $level

$locale protected_oe property

protected string $locale
Résultat string

$menuItem protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $menuItem
Résultat Doctrine\Common\Collections\ArrayCollection

$metaDescription protected_oe property

protected string $metaDescription
Résultat string

$metaKeyword protected_oe property

protected string $metaKeyword
Résultat string

$metaTitle protected_oe property

protected string $metaTitle
Résultat string

$oldTitle protected_oe property

protected string $oldTitle
Résultat string

$originals protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $originals
Résultat Doctrine\Common\Collections\ArrayCollection

$pageName protected_oe property

protected string $pageName
Résultat string

$parent protected_oe property

protected PageInterface,Networking\InitCmsBundle\Model|NULL $parent
Résultat Networking\InitCmsBundle\Model\PageInterface | null

$parents protected_oe property

protected array $parents
Résultat array

$path protected_oe property

protected string $path
Résultat string

$snapshotClassType protected_oe property

protected string $snapshotClassType
Résultat string

$snapshots protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $snapshots
Résultat Doctrine\Common\Collections\ArrayCollection

$status protected_oe property

protected string $status
Résultat string

$translations protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $translations
Résultat Doctrine\Common\Collections\ArrayCollection

$updatedAt protected_oe property

protected Datetime $updatedAt
Résultat Datetime

$url protected_oe property

protected string $url
Résultat string

$visibility protected_oe property

protected string $visibility
Résultat string