BlockPosition extends AbstractEntity
BlockPosition
Tags
Table of Contents
| $section | int | |
|---|---|---|
| $block_id | int | |
| $layout_id | int | |
| $block_row | int|null | |
| $Block | Block | |
| $Layout | Layout | |
| $AnnotationReader | ||
| setSection() | Set section. | BlockPosition | 
| getSection() | Get section. | int | 
| setBlockId() | Set blockId. | BlockPosition | 
| getBlockId() | Get blockId. | int | 
| setLayoutId() | Set layoutId. | BlockPosition | 
| getLayoutId() | Get layoutId. | int | 
| setBlockRow() | Set blockRow. | BlockPosition | 
| getBlockRow() | Get blockRow. | int|null | 
| setBlock() | Set block. | BlockPosition | 
| getBlock() | Get block. | Block|null | 
| setLayout() | Set layout. | BlockPosition | 
| getLayout() | Get Layout. | Layout|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
$section
        private
                int
        $section
            
                Tags
$block_id
        private
                int
        $block_id
            
                Tags
$layout_id
        private
                int
        $layout_id
            
                Tags
$block_row
        private
                int|null
        $block_row
            
                Tags
$Block
        private
                Block
        $Block
            
                Tags
$Layout
        private
                Layout
        $Layout
            
                Tags
$AnnotationReader
        private
                mixed
        $AnnotationReader
            
            
Methods
setSection()
Set section.
        public
                                setSection(
                    
                            $section :
                int
                            
                )
        : BlockPosition
    
    
            Parameters
- $section : int
 
Return values
BlockPositiongetSection()
Get section.
        public
                                getSection(
                )
        : int
    
    
    
        
            Return values
intsetBlockId()
Set blockId.
        public
                                setBlockId(
                    
                            $blockId :
                int
                            
                )
        : BlockPosition
    
    
            Parameters
- $blockId : int
 
Return values
BlockPositiongetBlockId()
Get blockId.
        public
                                getBlockId(
                )
        : int
    
    
    
        
            Return values
intsetLayoutId()
Set layoutId.
        public
                                setLayoutId(
                    
                            $layoutId :
                int
                            
                )
        : BlockPosition
    
    
            Parameters
- $layoutId : int
 
Return values
BlockPositiongetLayoutId()
Get layoutId.
        public
                                getLayoutId(
                )
        : int
    
    
    
        
            Return values
intsetBlockRow()
Set blockRow.
        public
                                setBlockRow(
                    
            [                $blockRow :
                int|null
                 = null ]            
                )
        : BlockPosition
    
    
            Parameters
- $blockRow : int|null = null
 
Return values
BlockPositiongetBlockRow()
Get blockRow.
        public
                                getBlockRow(
                )
        : int|null
    
    
    
        
            Return values
int|nullsetBlock()
Set block.
        public
                                setBlock(
                    
            [                $block :
                Block|null
                 = null ]            
                )
        : BlockPosition
    
    
            Parameters
- $block : Block|null = null
 
Return values
BlockPositiongetBlock()
Get block.
        public
                                getBlock(
                )
        : Block|null
    
    
    
        
            Return values
Block|nullsetLayout()
Set layout.
        public
                                setLayout(
                    
            [                $Layout :
                Layout|null
                 = null ]            
                )
        : BlockPosition
    
    
            Parameters
- $Layout : Layout|null = null
 
Return values
BlockPositiongetLayout()
Get Layout.
        public
                                getLayout(
                )
        : Layout|null
    
    
    
        
            Return values
Layout|nulloffsetExists()
        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], ...]