Layout extends AbstractEntity
Layout
Tags
Table of Contents
Constants
TARGET_ID_UNUSED
配置ID: 未使用
public
mixed
$TARGET_ID_UNUSED
= ""
TARGET_ID_HEAD
public
mixed
$TARGET_ID_HEAD
= 1
TARGET_ID_BODY_AFTER
public
mixed
$TARGET_ID_BODY_AFTER
= 2
TARGET_ID_HEADER
public
mixed
$TARGET_ID_HEADER
= 3
TARGET_ID_CONTENTS_TOP
public
mixed
$TARGET_ID_CONTENTS_TOP
= 4
TARGET_ID_SIDE_LEFT
public
mixed
$TARGET_ID_SIDE_LEFT
= 5
TARGET_ID_MAIN_TOP
public
mixed
$TARGET_ID_MAIN_TOP
= 6
TARGET_ID_MAIN_BOTTOM
public
mixed
$TARGET_ID_MAIN_BOTTOM
= 7
TARGET_ID_SIDE_RIGHT
public
mixed
$TARGET_ID_SIDE_RIGHT
= 8
TARGET_ID_CONTENTS_BOTTOM
public
mixed
$TARGET_ID_CONTENTS_BOTTOM
= 9
TARGET_ID_FOOTER
public
mixed
$TARGET_ID_FOOTER
= 10
TARGET_ID_DRAWER
public
mixed
$TARGET_ID_DRAWER
= 11
TARGET_ID_CLOSE_BODY_BEFORE
public
mixed
$TARGET_ID_CLOSE_BODY_BEFORE
= 12
DEFAULT_LAYOUT_PREVIEW_PAGE
プレビュー用レイアウト
public
mixed
$DEFAULT_LAYOUT_PREVIEW_PAGE
= ""
DEFAULT_LAYOUT_TOP_PAGE
トップページ用レイアウト
public
mixed
$DEFAULT_LAYOUT_TOP_PAGE
= 1
DEFAULT_LAYOUT_UNDERLAYER_PAGE
下層ページ用レイアウト
public
mixed
$DEFAULT_LAYOUT_UNDERLAYER_PAGE
= 2
Properties
$id
private
int
$id
Tags
$name
private
string
$name
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$BlockPositions
private
Collection
$BlockPositions
Tags
$PageLayouts
private
Collection
$PageLayouts
Tags
$DeviceType
private
DeviceType
$DeviceType
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
__toString()
public
__toString(
)
: string
Return values
stringisDefault()
public
isDefault(
)
: mixed
Return values
mixedgetPages()
public
getPages(
)
: \Eccube\Entity\Page[]
Return values
\Eccube\Entity\Page[]getBlocks()
public
getBlocks(
[ $targetId :
int|null
= null ]
)
: \Eccube\Entity\Block[]
Parameters
- $targetId : int|null = null
Return values
\Eccube\Entity\Block[]getBlockPositionsByTargetId()
public
getBlockPositionsByTargetId(
$targetId :
int
)
: \Eccube\Entity\BlockPosition[]
Parameters
- $targetId : int
Return values
\Eccube\Entity\BlockPosition[]getUnused()
public
getUnused(
)
: mixed
Return values
mixedgetHead()
public
getHead(
)
: mixed
Return values
mixedgetBodyAfter()
public
getBodyAfter(
)
: mixed
Return values
mixedgetHeader()
public
getHeader(
)
: mixed
Return values
mixedgetContentsTop()
public
getContentsTop(
)
: mixed
Return values
mixedgetSideLeft()
public
getSideLeft(
)
: mixed
Return values
mixedgetMainTop()
public
getMainTop(
)
: mixed
Return values
mixedgetMainBottom()
public
getMainBottom(
)
: mixed
Return values
mixedgetSideRight()
public
getSideRight(
)
: mixed
Return values
mixedgetContentsBottom()
public
getContentsBottom(
)
: mixed
Return values
mixedgetFooter()
public
getFooter(
)
: mixed
Return values
mixedgetDrawer()
public
getDrawer(
)
: mixed
Return values
mixedgetCloseBodyBefore()
public
getCloseBodyBefore(
)
: mixed
Return values
mixedgetColumnNum()
Get ColumnNum
public
getColumnNum(
)
: int
Return values
int__construct()
Constructor
public
__construct(
)
: mixed
Return values
mixedgetId()
Get id
public
getId(
)
: int
Return values
intsetName()
Set name
public
setName(
$name :
string
)
: Layout
Parameters
- $name : string
Return values
LayoutgetName()
Get name
public
getName(
)
: string
Return values
stringsetCreateDate()
Set createDate
public
setCreateDate(
$createDate :
DateTime
)
: Layout
Parameters
- $createDate : DateTime
Return values
LayoutgetCreateDate()
Get createDate
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate
public
setUpdateDate(
$updateDate :
DateTime
)
: Layout
Parameters
- $updateDate : DateTime
Return values
LayoutgetUpdateDate()
Get updateDate
public
getUpdateDate(
)
: DateTime
Return values
DateTimeaddBlockPosition()
Add blockPosition
public
addBlockPosition(
$blockPosition :
BlockPosition
)
: Layout
Parameters
- $blockPosition : BlockPosition
Return values
LayoutremoveBlockPosition()
Remove blockPosition
public
removeBlockPosition(
$blockPosition :
BlockPosition
)
: mixed
Parameters
- $blockPosition : BlockPosition
Return values
mixedgetBlockPositions()
Get blockPositions
public
getBlockPositions(
)
: Collection
Return values
CollectionaddPageLayout()
Add pageLayoutLayout
public
addPageLayout(
$PageLayout :
PageLayout
)
: Layout
Parameters
- $PageLayout : PageLayout
Return values
LayoutremovePageLayout()
Remove pageLayoutLayout
public
removePageLayout(
$PageLayout :
PageLayout
)
: mixed
Parameters
- $PageLayout : PageLayout
Return values
mixedgetPageLayouts()
Get pageLayoutLayouts
public
getPageLayouts(
)
: Collection
Return values
CollectionsetDeviceType()
Set deviceType
public
setDeviceType(
[ $deviceType :
DeviceType
= null ]
)
: Layout
Parameters
- $deviceType : DeviceType = null
Return values
LayoutgetDeviceType()
Get deviceType
public
getDeviceType(
)
: DeviceType
Return values
DeviceTypeisDeletable()
Check layout can delete or not
public
isDeletable(
)
: bool
Return values
booloffsetExists()
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], ...]