本文整理汇总了PHP中Field::toArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Field::toArray方法的具体用法?PHP Field::toArray怎么用?PHP Field::toArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Field
的用法示例。
在下文中一共展示了Field::toArray方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: toArray
/**
* Turn this item into an array
*
* @return array
*/
public function toArray()
{
$arr = parent::toArray();
$arr['limit'] = $this->limit;
$arr['height'] = $this->height;
return $arr;
}
示例2: toArray
/**
* Turn this item into an array
*
* @return array
*/
public function toArray()
{
$arr = parent::toArray();
$arr['symbol'] = $this->symbol;
$arr['decimals'] = $this->decimals;
$arr['decimalSeparator'] = $this->decimalSeparator;
$arr['thousandsSeparator'] = $this->thousandsSeparator;
return $arr;
}
示例3: toArray
/**
* @return array
*/
public function toArray()
{
$array = parent::toArray();
if ($this->getCurrencyCode() !== null) {
$array['currencyCode'] = $this->getCurrencyCode();
}
if ($this->getNumberStyle() !== null) {
$array['numberStyle'] = $this->getNumberStyle();
}
return $array;
}
示例4: toArray
/**
* @return array
*/
public function toArray()
{
$array = parent::toArray();
if (strlen($this->getDateStyle())) {
$array['dateStyle'] = $this->getDateStyle();
}
if (is_bool($this->getIgnoresTimeZone())) {
$array['ignoresTimeZone'] = $this->getIgnoresTimeZone();
}
if (is_bool($this->getIsRelative())) {
$array['isRelative'] = $this->getIsRelative();
}
if (strlen($this->getTimeStyle())) {
$array['timeStyle'] = $this->getTimeStyle();
}
return $array;
}
示例5: toArray
/**
* Turn this item into an array
*
* @return array
*/
public function toArray()
{
$arr = parent::toArray();
$arr['options'] = $this->options;
return $arr;
}