PHP 클래스 Networking\InitCmsBundle\Helper\PageHelper

저자: Yorkie Chadwick ([email protected])
파일 보기 프로젝트 열기: networking/init-cms-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$container Symfony\Component\DependencyInjection\ContainerInterface

공개 메소드들

메소드 설명
camelize ( string $property ) : string Camelize a string
getFieldValue ( Networking\InitCmsBundle\Model\PageInterface $object, $fieldName, null $method = null ) : mixed Fetch the variables from the given content type object
getPageRoutePath ( $path ) : string
getParameter ( $id ) : mixed
getService ( $id ) : object
jsonPageIsActive ( $jsonString ) : boolean Returns if a page is active or inactive based on json string from page snapshot
makePageSnapshot ( Networking\InitCmsBundle\Model\PageInterface $page ) Create a snapshot of a given page.
makeTranslationCopy ( Networking\InitCmsBundle\Model\PageInterface $page, $locale ) : Page create a copy of a given page object in a given locale
matchContentRouteRequest ( Request $request ) : Request Fills the request object with the content route parameters if found
replaceSlugInPath ( $path, $id, $slug ) : mixed
setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
setFieldValue ( Networking\InitCmsBundle\Model\PageInterface $object, $fieldName, $value, null $method = null ) : mixed Set the variables to the given content type object
unserializePageSnapshotData ( Networking\InitCmsBundle\Model\PageSnapshotInterface $pageSnapshot, boolean $unserializeTranslations = true ) : Networking\InitCmsBundle\Model\PageInterface Unserialize the PageSnapshot data into a page object

메소드 상세

camelize() 공개 정적인 메소드

Camelize a string
public static camelize ( string $property ) : string
$property string
리턴 string

getFieldValue() 공개 정적인 메소드

Fetch the variables from the given content type object
public static getFieldValue ( Networking\InitCmsBundle\Model\PageInterface $object, $fieldName, null $method = null ) : mixed
$object Networking\InitCmsBundle\Model\PageInterface
$fieldName
$method null
리턴 mixed

getPageRoutePath() 공개 정적인 메소드

public static getPageRoutePath ( $path ) : string
$path
리턴 string

getParameter() 공개 메소드

public getParameter ( $id ) : mixed
$id
리턴 mixed

getService() 공개 메소드

public getService ( $id ) : object
$id
리턴 object

jsonPageIsActive() 공개 메소드

Returns if a page is active or inactive based on json string from page snapshot
public jsonPageIsActive ( $jsonString ) : boolean
$jsonString
리턴 boolean

makePageSnapshot() 공개 메소드

Create a snapshot of a given page.
public makePageSnapshot ( Networking\InitCmsBundle\Model\PageInterface $page )
$page Networking\InitCmsBundle\Model\PageInterface

makeTranslationCopy() 공개 메소드

create a copy of a given page object in a given locale
public makeTranslationCopy ( Networking\InitCmsBundle\Model\PageInterface $page, $locale ) : Page
$page Networking\InitCmsBundle\Model\PageInterface
$locale
리턴 Networking\InitCmsBundle\Model\Page

matchContentRouteRequest() 공개 메소드

Fills the request object with the content route parameters if found
public matchContentRouteRequest ( Request $request ) : Request
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Request

replaceSlugInPath() 공개 정적인 메소드

public static replaceSlugInPath ( $path, $id, $slug ) : mixed
$path
$id
$slug
리턴 mixed

setContainer() 공개 메소드

public setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
$container Symfony\Component\DependencyInjection\ContainerInterface

setFieldValue() 공개 정적인 메소드

Set the variables to the given content type object
public static setFieldValue ( Networking\InitCmsBundle\Model\PageInterface $object, $fieldName, $value, null $method = null ) : mixed
$object Networking\InitCmsBundle\Model\PageInterface
$fieldName
$value
$method null
리턴 mixed

unserializePageSnapshotData() 공개 메소드

Unserialize the PageSnapshot data into a page object
public unserializePageSnapshotData ( Networking\InitCmsBundle\Model\PageSnapshotInterface $pageSnapshot, boolean $unserializeTranslations = true ) : Networking\InitCmsBundle\Model\PageInterface
$pageSnapshot Networking\InitCmsBundle\Model\PageSnapshotInterface
$unserializeTranslations boolean
리턴 Networking\InitCmsBundle\Model\PageInterface

프로퍼티 상세

$container 보호되어 있는 프로퍼티

protected ContainerInterface,Symfony\Component\DependencyInjection $container
리턴 Symfony\Component\DependencyInjection\ContainerInterface