EC-CUBE4 APIドキュメント

PageLayout extends AbstractEntity

PageLayout

Tags
ORM\Table

(name="dtb_page_layout")

ORM\InheritanceType

("SINGLE_TABLE")

ORM\DiscriminatorColumn

(name="discriminator_type", type="string", length=255)

ORM\HasLifecycleCallbacks

()

ORM\Entity

(repositoryClass="Eccube\Repository\PageLayoutRepository")

Table of Contents

$page_id int
$layout_id int
$sort_no int
$Page Page
$Layout Layout
$AnnotationReader
setPageId() Set pageId PageLayout
getPageId() Get pageId int
setLayoutId() Set layoutId PageLayout
getLayoutId() Get layoutId int
setSortNo() Set sort_no PageLayout
getSortNo() Get sort_no int
setPage() Set pageLayout PageLayout
getPage() Get pageLayout Page
setLayout() Set layout PageLayout
getLayout() Get layout Layout
getDeviceTypeId() DeviceTypeがあればDeviceTypeIdを返す DeviceTypeがなければnullを返す int|null
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

Properties

$page_id

private int $page_id
Tags
ORM\Column

(name="page_id", type="integer", options={"unsigned":true})

ORM\Id
ORM\GeneratedValue

(strategy="NONE")

$layout_id

private int $layout_id
Tags
ORM\Column

(name="layout_id", type="integer", options={"unsigned":true})

ORM\Id
ORM\GeneratedValue

(strategy="NONE")

$sort_no

private int $sort_no
Tags
ORM\Column

(name="sort_no", type="smallint", options={"unsigned":true})

$Page

private Page $Page
Tags
ORM\ManyToOne

(targetEntity="Eccube\Entity\Page", inversedBy="PageLayouts")

ORM\JoinColumns

({ @ORM\JoinColumn(name="page_id", referencedColumnName="id") })

$Layout

private Layout $Layout
Tags
ORM\ManyToOne

(targetEntity="Eccube\Entity\Layout", inversedBy="PageLayouts")

ORM\JoinColumns

({ @ORM\JoinColumn(name="layout_id", referencedColumnName="id") })

Methods

getPageId()

Get pageId

public getPageId( ) : int
Return values
int

getLayoutId()

Get layoutId

public getLayoutId( ) : int
Return values
int

getSortNo()

Get sort_no

public getSortNo( ) : int
Return values
int

getDeviceTypeId()

DeviceTypeがあればDeviceTypeIdを返す DeviceTypeがなければnullを返す

public getDeviceTypeId( ) : int|null
Return values
int|null

offsetExists()

public offsetExists( $offset : mixed ) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

public offsetSet( $offset : mixed , $value : mixed ) : mixed
Parameters
$offset : mixed
$value : mixed
Return values
mixed

offsetGet()

public offsetGet( $offset : mixed ) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetUnset()

public offsetUnset( $offset : mixed ) : mixed
Parameters
$offset : mixed
Return values
mixed

setPropertiesFromArray()

引数の連想配列を元にプロパティを設定します.

public setPropertiesFromArray( $arrProps : array [, $excludeAttribute : string[] = [] ] [, $parentClass : ReflectionClass = null ] ) : mixed

DBから取り出した連想配列を, プロパティへ設定する際に使用します.

Parameters
$arrProps : array

プロパティの情報を格納した連想配列

$excludeAttribute : string[] = []

除外したいフィールド名の配列

$parentClass : ReflectionClass = null

親のクラス. 本メソッドの内部的に使用します.

Return values
mixed

toArray()

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
array

toNormalizedArray()

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
array

toJSON()

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
string

toXML()

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
string

copyProperties()

コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー

public copyProperties( $srcObject : object [, $excludeAttribute : string[] = [] ] ) : AbstractEntity
Parameters
$srcObject : object

コピー元のオブジェクト

$excludeAttribute : string[] = []

除外したいフィールド名の配列

Return values
AbstractEntity

getAnnotationReader()

Get AnnotationReader.

public getAnnotationReader( ) : Reader
Return values
Reader

getEntityIdentifierAsArray()

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], ...]

Search results