PHP Class Networking\InitCmsBundle\Model\Page

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

Protected Properties

Property 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

Public Methods

Method 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

Method Description
compareSortOrder ( $a, $b ) : integer

Method Details

__construct() public method

public __construct ( )

__toString() public method

public __toString ( ) : string
return string

addChildren() public method

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

addLayoutBlock() public method

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

addTranslation() public method

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

convertAliasToInteger() public method

public convertAliasToInteger ( ) : integer
return integer

convertChildrenToIntegerArray() public method

convertIntegerToPage() public method

public convertIntegerToPage ( $id )
$id

convertOriginalsToIntegerArray() public method

convertParentToInteger() public method

public convertParentToInteger ( ) : integer
return integer

convertParentsToArray() public method

public convertParentsToArray ( ) : array
return array

convertTranslationsToIntegerArray() public method

getActiveEnd() public method

public getActiveEnd ( ) : Datetime
return Datetime

getActiveFrom() public method

Get activeFrom
public getActiveFrom ( ) : DateTime
return DateTime

getActiveStart() public method

Get activeFrom
public getActiveStart ( ) : DateTime
return DateTime

getActiveTo() public method

public getActiveTo ( ) : Datetime
return Datetime

getAdminTitle() public method

public getAdminTitle ( ) : string
return string

getAlias() public method

public getAlias ( ) : Networking\InitCmsBundle\Model\PageInterface
return Networking\InitCmsBundle\Model\PageInterface

getAliasFullPath() public method

public getAliasFullPath ( ) : string
return string

getAllChildren() public method

public getAllChildren ( array &$children = [] ) : array
$children array
return array

getAllTranslations() public method

public getAllTranslations ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getChildren() public method

public getChildren ( ) : mixed
return mixed

getCreatedAt() public method

Get createdAt
public getCreatedAt ( ) : Datetime
return Datetime

getCurrentVersion() public method

public getCurrentVersion ( ) : integer
return integer

getDirectTranslationFor() public method

public getDirectTranslationFor ( Networking\InitCmsBundle\Model\PageInterface $page ) : mixed
$page Networking\InitCmsBundle\Model\PageInterface
return mixed

getFullPath() public method

public getFullPath ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getIsHome() public method

public getIsHome ( ) : boolean
return boolean

getLayoutBlock() public method

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

getLevel() public method

public getLevel ( ) : mixed
return mixed

getLocale() public method

public getLocale ( ) : string
return string

getMenuItem() public method

Get menuItem
public getMenuItem ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getMenuItemByRoot() public method

public getMenuItemByRoot ( $rootId ) : Doctrine\Common\Collections\Collection
$rootId
return Doctrine\Common\Collections\Collection

getMetaDescription() public method

public getMetaDescription ( ) : string
return string

getMetaKeyword() public method

public getMetaKeyword ( ) : string
return string

getMetaTitle() public method

Get metaTitle
public getMetaTitle ( ) : string
return string

getOriginals() public method

public getOriginals ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getPageName() public method

Get pageName
public getPageName ( ) : string
return string

getParent() public method

public getParent ( $level ) : Networking\InitCmsBundle\Model\PageInterface | null
$level
return Networking\InitCmsBundle\Model\PageInterface | null

getParents() public method

public getParents ( ) : array
return array

getPath() public method

public getPath ( ) : string
return string

getRecursiveTranslations() public method

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
return array

getResourceId() public method

public getResourceId ( ) : integer
return integer

getRoute() public method

{@inheritDoc}
public getRoute ( )

getRoutes() public method

{@inheritDoc}
public getRoutes ( )

getSnapshot() public method

public getSnapshot ( ) : mixed | Networking\InitCmsBundle\Model\PageSnapshotInterface
return mixed | Networking\InitCmsBundle\Model\PageSnapshotInterface

getSnapshotClassType() public method

public getSnapshotClassType ( ) : mixed | string
return mixed | string

getSnapshots() public method

public getSnapshots ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection $snapshots

getStatus() public method

Get status
public getStatus ( ) : string
return string

getStatusLabel() public method

public getStatusLabel ( ) : string
return string

getStatusList() public static method

public static getStatusList ( ) : array
return array

getTemplate() public method

public getTemplate ( ) : string
return string

getTemplateName() public method

public getTemplateName ( ) : string
return string

getTitle() public method

public getTitle ( ) : string
return string

getTranslatedLocales() public method

public getTranslatedLocales ( ) : array
return array

getTranslations() public method

public getTranslations ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getUpdatedAt() public method

Get updatedAt
public getUpdatedAt ( ) : Datetime
return Datetime

getUrl() public method

public getUrl ( ) : string
return string

getVisibility() public method

Get page visibility
public getVisibility ( ) : string
return string

getVisibilityList() public static method

public static getVisibilityList ( ) : array
return array

hasListener() public method

public hasListener ( ) : string
return string

hasPublishedVersion() public method

public hasPublishedVersion ( )

isActive() public method

public isActive ( ) : boolean
return boolean

isDirectTranslation() public method

public isDirectTranslation ( Networking\InitCmsBundle\Model\PageInterface $page ) : boolean
$page Networking\InitCmsBundle\Model\PageInterface
return boolean

isDraft() public method

public isDraft ( ) : boolean
return boolean

isHome() public method

public isHome ( ) : boolean
return boolean

isPublished() public method

public isPublished ( ) : boolean
return boolean

isReview() public method

public isReview ( ) : boolean
return boolean

orderLayoutBlocks() public method

public orderLayoutBlocks ( )

prePersist() public method

Hook on to pre-persist action
public prePersist ( )

preUpdate() public method

Hook on to pre-update action
public preUpdate ( )

prepareMenuItemsForSerialization() public method

public prepareMenuItemsForSerialization ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

removeLayoutBlock() public method

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

removeMenuItem() public method

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

removeTranslation() public method

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

resetLayoutBlock() public method

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

setActiveFrom() public method

Set activeFrom
public setActiveFrom ( $activeFrom )
$activeFrom

setActiveTo() public method

public setActiveTo ( Datetime $activeTo )
$activeTo Datetime

setAlias() public method

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

setAllChildren() public method

public setAllChildren ( $children )
$children

setChildren() public method

public setChildren ( $children )
$children

setContentRoute() public method

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

setCreatedAt() public method

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

setIsHome() public method

public setIsHome ( $isHome )
$isHome

setLayoutBlock() public method

public setLayoutBlock ( $layoutBlocks )
$layoutBlocks

setLocale() public method

public setLocale ( string $locale )
$locale string

setMenuItem() public method

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

setMetaDescription() public method

public setMetaDescription ( $metaDescription )
$metaDescription

setMetaKeyword() public method

public setMetaKeyword ( $metaKeyword )
$metaKeyword

setMetaTitle() public method

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

setOriginal() public method

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

setOriginals() public method

public setOriginals ( array $originals )
$originals array

setPageName() public method

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

setParent() public method

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

setParents() public method

public setParents ( array $parents )
$parents array

setPath() public method

public setPath ( $path )
$path

setSnapshots() public method

public setSnapshots ( $snapshots )
$snapshots

setStatus() public method

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

setTemplate() public method

public setTemplate ( $template )
$template

setTemplateName() public method

public setTemplateName ( $templateName )
$templateName

setTranslations() public method

public setTranslations ( array $translations )
$translations array

setUpdatedAt() public method

Set updatedAt
public setUpdatedAt ( )

setUrl() public method

public setUrl ( string $url )
$url string

setVisibility() public method

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

Property Details

$activeFrom protected_oe property

protected Datetime $activeFrom
return Datetime

$activeTo protected_oe property

protected Datetime $activeTo
return Datetime

$alias protected_oe property

protected PageInterface,Networking\InitCmsBundle\Model $alias
return Networking\InitCmsBundle\Model\PageInterface

$allChildren protected_oe property

protected array $allChildren
return array

$children protected_oe property

protected array $children
return array

$contentRoute protected_oe property

protected ContentRouteInterface,Networking\InitCmsBundle\Model $contentRoute
return Networking\InitCmsBundle\Model\ContentRouteInterface

$createdAt protected_oe property

protected Datetime $createdAt
return Datetime

$id protected_oe property

protected int $id
return integer

$isHome protected_oe property

protected bool $isHome
return boolean

$layoutBlock protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $layoutBlock
return Doctrine\Common\Collections\ArrayCollection

$level protected_oe property

protected $level

$locale protected_oe property

protected string $locale
return string

$menuItem protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $menuItem
return Doctrine\Common\Collections\ArrayCollection

$metaDescription protected_oe property

protected string $metaDescription
return string

$metaKeyword protected_oe property

protected string $metaKeyword
return string

$metaTitle protected_oe property

protected string $metaTitle
return string

$oldTitle protected_oe property

protected string $oldTitle
return string

$originals protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $originals
return Doctrine\Common\Collections\ArrayCollection

$pageName protected_oe property

protected string $pageName
return string

$parent protected_oe property

protected PageInterface,Networking\InitCmsBundle\Model|NULL $parent
return Networking\InitCmsBundle\Model\PageInterface | null

$parents protected_oe property

protected array $parents
return array

$path protected_oe property

protected string $path
return string

$snapshotClassType protected_oe property

protected string $snapshotClassType
return string

$snapshots protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $snapshots
return Doctrine\Common\Collections\ArrayCollection

$status protected_oe property

protected string $status
return string

$translations protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $translations
return Doctrine\Common\Collections\ArrayCollection

$updatedAt protected_oe property

protected Datetime $updatedAt
return Datetime

$url protected_oe property

protected string $url
return string

$visibility protected_oe property

protected string $visibility
return string