Page extends AbstractEntity
Page
Tags
Table of Contents
EDIT_TYPE_USER | 0 | |
---|---|---|
EDIT_TYPE_PREVIEW | 1 | |
EDIT_TYPE_DEFAULT | 2 | |
TRADELAW_PAGE_ID | 21 | |
AGREEMENT_PAGE_ID | 19 | |
$id | int | |
$name | string|null | |
$url | string | |
$file_name | string|null | |
$edit_type | int | |
$author | string|null | |
$description | string|null | |
$keyword | string|null | |
$create_date | DateTime | |
$update_date | DateTime | |
$meta_robots | string|null | |
$meta_tags | string|null | |
$PageLayouts | Collection | |
$MasterPage | Page | |
$AnnotationReader | ||
getLayouts() | mixed | |
__construct() | Constructor | mixed |
setId() | Set id | Page |
getId() | Get id | int |
setName() | Set name. | Page |
getName() | Get name. | string|null |
setUrl() | Set url. | Page |
getUrl() | Get url. | string |
setFileName() | Set fileName. | Page |
getFileName() | Get fileName. | string|null |
setEditType() | Set editType. | Page |
getEditType() | Get editType. | int |
setAuthor() | Set author. | Page |
getAuthor() | Get author. | string|null |
setDescription() | Set description. | Page |
getDescription() | Get description. | string|null |
setKeyword() | Set keyword. | Page |
getKeyword() | Get keyword. | string|null |
setCreateDate() | Set createDate. | Page |
getCreateDate() | Get createDate. | DateTime |
setUpdateDate() | Set updateDate. | Page |
getUpdateDate() | Get updateDate. | DateTime |
setMetaRobots() | Set metaRobots. | Page |
getMetaRobots() | Get metaRobots. | string|null |
setMetaTags() | Set meta_tags | Page |
getMetaTags() | Get meta_tags | string |
getPageLayouts() | Get pageLayoutLayout. | Collection |
addPageLayout() | Add pageLayoutLayout | Page |
removePageLayout() | Remove pageLayoutLayout | mixed |
setMasterPage() | Set MasterPage. | Page |
getMasterPage() | Get MasterPage. | Page|null |
getSortNo() | null|int | |
offsetExists() | mixed | |
offsetSet() | mixed | |
offsetGet() | mixed | |
offsetUnset() | mixed | |
setPropertiesFromArray() | 引数の連想配列を元にプロパティを設定します. | mixed |
toArray() | Convert to associative array. | array |
toNormalizedArray() | Convert to associative array, and normalize to association properties. | array |
toJSON() | Convert to JSON. | string |
toXML() | Convert to XML. | string |
copyProperties() | コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー | AbstractEntity |
setAnnotationReader() | Set AnnotationReader. | AbstractEntity |
getAnnotationReader() | Get AnnotationReader. | Reader |
getEntityIdentifierAsArray() | Convert to Entity of Identity value to associative array. | array |
Constants
EDIT_TYPE_USER
public
mixed
$EDIT_TYPE_USER
= ""
EDIT_TYPE_PREVIEW
public
mixed
$EDIT_TYPE_PREVIEW
= 1
EDIT_TYPE_DEFAULT
public
mixed
$EDIT_TYPE_DEFAULT
= 2
TRADELAW_PAGE_ID
public
mixed
$TRADELAW_PAGE_ID
= 21
AGREEMENT_PAGE_ID
public
mixed
$AGREEMENT_PAGE_ID
= 19
Properties
$id
private
int
$id
Tags
$name
private
string|null
$name
Tags
$url
private
string
$url
Tags
$file_name
private
string|null
$file_name
Tags
$edit_type
private
int
$edit_type
= 1
Tags
$author
private
string|null
$author
Tags
$description
private
string|null
$description
Tags
$keyword
private
string|null
$keyword
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$meta_robots
private
string|null
$meta_robots
Tags
$meta_tags
private
string|null
$meta_tags
Tags
$PageLayouts
private
Collection
$PageLayouts
Tags
$MasterPage
private
Page
$MasterPage
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
getLayouts()
public
getLayouts(
)
: mixed
Return values
mixed__construct()
Constructor
public
__construct(
)
: mixed
Return values
mixedsetId()
Set id
public
setId(
$id :
mixed
)
: Page
Parameters
- $id : mixed
Return values
PagegetId()
Get id
public
getId(
)
: int
Return values
intsetName()
Set name.
public
setName(
[ $name :
string|null
= null ]
)
: Page
Parameters
- $name : string|null = null
Return values
PagegetName()
Get name.
public
getName(
)
: string|null
Return values
string|nullsetUrl()
Set url.
public
setUrl(
$url :
string
)
: Page
Parameters
- $url : string
Return values
PagegetUrl()
Get url.
public
getUrl(
)
: string
Return values
stringsetFileName()
Set fileName.
public
setFileName(
[ $fileName :
string|null
= null ]
)
: Page
Parameters
- $fileName : string|null = null
Return values
PagegetFileName()
Get fileName.
public
getFileName(
)
: string|null
Return values
string|nullsetEditType()
Set editType.
public
setEditType(
$editType :
int
)
: Page
Parameters
- $editType : int
Return values
PagegetEditType()
Get editType.
public
getEditType(
)
: int
Return values
intsetAuthor()
Set author.
public
setAuthor(
[ $author :
string|null
= null ]
)
: Page
Parameters
- $author : string|null = null
Return values
PagegetAuthor()
Get author.
public
getAuthor(
)
: string|null
Return values
string|nullsetDescription()
Set description.
public
setDescription(
[ $description :
string|null
= null ]
)
: Page
Parameters
- $description : string|null = null
Return values
PagegetDescription()
Get description.
public
getDescription(
)
: string|null
Return values
string|nullsetKeyword()
Set keyword.
public
setKeyword(
[ $keyword :
string|null
= null ]
)
: Page
Parameters
- $keyword : string|null = null
Return values
PagegetKeyword()
Get keyword.
public
getKeyword(
)
: string|null
Return values
string|nullsetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: Page
Parameters
- $createDate : DateTime
Return values
PagegetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: Page
Parameters
- $updateDate : DateTime
Return values
PagegetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimesetMetaRobots()
Set metaRobots.
public
setMetaRobots(
[ $metaRobots :
string|null
= null ]
)
: Page
Parameters
- $metaRobots : string|null = null
Return values
PagegetMetaRobots()
Get metaRobots.
public
getMetaRobots(
)
: string|null
Return values
string|nullsetMetaTags()
Set meta_tags
public
setMetaTags(
$metaTags :
string
)
: Page
Parameters
- $metaTags : string
Return values
PagegetMetaTags()
Get meta_tags
public
getMetaTags(
)
: string
Return values
stringgetPageLayouts()
Get pageLayoutLayout.
public
getPageLayouts(
)
: Collection
Return values
CollectionaddPageLayout()
Add pageLayoutLayout
public
addPageLayout(
$PageLayout :
PageLayout
)
: Page
Parameters
- $PageLayout : PageLayout
Return values
PageremovePageLayout()
Remove pageLayoutLayout
public
removePageLayout(
$PageLayout :
PageLayout
)
: mixed
Parameters
- $PageLayout : PageLayout
Return values
mixedsetMasterPage()
Set MasterPage.
public
setMasterPage(
[ $page :
Page|null
= null ]
)
: Page
Parameters
- $page : Page|null = null
Return values
PagegetMasterPage()
Get MasterPage.
public
getMasterPage(
)
: Page|null
Return values
Page|nullgetSortNo()
public
getSortNo(
$layoutId :
)
: null|int
Parameters
Return values
null|intoffsetExists()
public
offsetExists(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetSet()
public
offsetSet(
$offset :
mixed
, $value :
mixed
)
: mixed
Parameters
- $offset : mixed
- $value : mixed
Return values
mixedoffsetGet()
public
offsetGet(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetUnset()
public
offsetUnset(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedsetPropertiesFromArray()
引数の連想配列を元にプロパティを設定します.
public
setPropertiesFromArray(
$arrProps :
array
[, $excludeAttribute :
string[]
= [] ]
[, $parentClass :
ReflectionClass
= null ]
)
: mixed
DBから取り出した連想配列を, プロパティへ設定する際に使用します.
Parameters
- $arrProps : array
プロパティの情報を格納した連想配列
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
- $parentClass : ReflectionClass = null
親のクラス. 本メソッドの内部的に使用します.
Return values
mixedtoArray()
Convert to associative array.
public
toArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
[, $parentClass :
ReflectionClass
= null ]
)
: array
Symfony Serializer Component is expensive, and hard to implementation. Use for encoder only.
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
- $parentClass : ReflectionClass = null
parent class. Use internally of this method..
Return values
arraytoNormalizedArray()
Convert to associative array, and normalize to association properties.
public
toNormalizedArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: array
The type conversion such as:
- Datetime :: W3C datetime format string
- AbstractEntity :: associative array such as [id => value]
- PersistentCollection :: associative array of [[id => value], [id => value], ...]
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
arraytoJSON()
Convert to JSON.
public
toJSON(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringtoXML()
Convert to XML.
public
toXML(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringcopyProperties()
コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー
public
copyProperties(
$srcObject :
object
[, $excludeAttribute :
string[]
= [] ]
)
: AbstractEntity
Parameters
- $srcObject : object
コピー元のオブジェクト
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
Return values
AbstractEntitysetAnnotationReader()
Set AnnotationReader.
public
setAnnotationReader(
$Reader :
Reader
)
: AbstractEntity
Parameters
- $Reader : Reader
Return values
AbstractEntitygetAnnotationReader()
Get AnnotationReader.
public
getAnnotationReader(
)
: Reader
Return values
ReadergetEntityIdentifierAsArray()
Convert to Entity of Identity value to associative array.
public
getEntityIdentifierAsArray(
$Entity :
AbstractEntity
)
: array
Parameters
- $Entity : AbstractEntity
Return values
array —associative array of [[id => value], [id => value], ...]