class Block extends AbstractEntity

Block

Constants

UNUSED_BLOCK_ID

Methods

offsetExists($offset)

No description

offsetSet($offset, $value)

No description

offsetGet($offset)

No description

offsetUnset($offset)

No description

setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

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

array
toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

object
copyProperties(object $srcObject, array $excludeAttribute = array())

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

__construct()

Constructor

setId(string $id)

Set id

integer
getId()

Get id

setName(string $name)

Set name

string
getName()

Get name

setFileName(string $fileName)

Set file_name

string
getFileName()

Get file_name

setCreateDate(DateTime $createDate)

Set create_date

getCreateDate()

Get create_date

setUpdateDate(DateTime $updateDate)

Set update_date

getUpdateDate()

Get update_date

setLogicFlg(integer $logic_flg)

Set php_path

string
getLogicFlg()

Get logic_flg

setDeletableFlg(integer $deletableFlg)

Set deletable_flg

integer
getDeletableFlg()

Get deletable_flg

addBlockPosition(BlockPosition $blockPositions)

Add BlocPositions

removeBlockPosition(BlockPosition $blockPositions)

Remove BlockPositions

Collection
getBlockPositions()

Get BlockPositions

setDeviceType(DeviceType $deviceType = null)

Set DeviceType

getDeviceType()

Get DeviceType

Details

in AbstractEntity at line 32
offsetExists($offset)

Parameters

$offset

in AbstractEntity at line 39
offsetSet($offset, $value)

Parameters

$offset
$value

in AbstractEntity at line 43
offsetGet($offset)

Parameters

$offset

in AbstractEntity at line 54
offsetUnset($offset)

Parameters

$offset

in AbstractEntity at line 66
setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

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

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

Parameters

array $arrProps
array $excludeAttribute
ReflectionClass $parentClass

in AbstractEntity at line 99
array toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

DBを更新する場合などで, 連想配列の値を取得したい場合に使用します.

Parameters

array $excludeAttribute
ReflectionClass $parentClass

Return Value

array 連想配列のプロパティの値

in AbstractEntity at line 139
object copyProperties(object $srcObject, array $excludeAttribute = array())

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

Parameters

object $srcObject コピー元のオブジェクト
array $excludeAttribute 除外したいフィールド名の配列

Return Value

object

at line 65
__construct()

Constructor

at line 76
Block setId(string $id)

Set id

Parameters

string $id

Return Value

Block

at line 88
integer getId()

Get id

Return Value

integer

at line 99
Block setName(string $name)

Set name

Parameters

string $name

Return Value

Block

at line 111
string getName()

Get name

Return Value

string

at line 122
Block setFileName(string $fileName)

Set file_name

Parameters

string $fileName

Return Value

Block

at line 134
string getFileName()

Get file_name

Return Value

string

at line 145
Block setCreateDate(DateTime $createDate)

Set create_date

Parameters

DateTime $createDate

Return Value

Block

at line 157
DateTime getCreateDate()

Get create_date

Return Value

DateTime

at line 168
Block setUpdateDate(DateTime $updateDate)

Set update_date

Parameters

DateTime $updateDate

Return Value

Block

at line 180
DateTime getUpdateDate()

Get update_date

Return Value

DateTime

at line 191
Block setLogicFlg(integer $logic_flg)

Set php_path

Parameters

integer $logic_flg

Return Value

Block

at line 203
string getLogicFlg()

Get logic_flg

Return Value

string

at line 214
Block setDeletableFlg(integer $deletableFlg)

Set deletable_flg

Parameters

integer $deletableFlg

Return Value

Block

at line 226
integer getDeletableFlg()

Get deletable_flg

Return Value

integer

at line 237
Block addBlockPosition(BlockPosition $blockPositions)

Add BlocPositions

Parameters

BlockPosition $blockPositions

Return Value

Block

at line 249
removeBlockPosition(BlockPosition $blockPositions)

Remove BlockPositions

Parameters

BlockPosition $blockPositions

at line 259
Collection getBlockPositions()

Get BlockPositions

Return Value

Collection

at line 270
Block setDeviceType(DeviceType $deviceType = null)

Set DeviceType

Parameters

DeviceType $deviceType

Return Value

Block

at line 282
DeviceType getDeviceType()

Get DeviceType

Return Value

DeviceType