toArray() public method

public toArray ( boolean $printDefaults = false ) : array
$printDefaults boolean
return array
示例#1
0
文件: Object.php 项目: jarves/jarves
 /**
  * {@inheritdoc}
  */
 public function toArray($printDefaults = false)
 {
     $array = parent::toArray($printDefaults);
     $array['key'] = $this->getKey();
     return $array;
 }
示例#2
0
文件: Field.php 项目: jarves/jarves
 /**
  * @param bool $printDefaults
  *
  * @return array
  */
 public function toArray($printDefaults = false)
 {
     $array = parent::toArray($printDefaults);
     if ($this->getType() && $this->hasFieldType()) {
         $array['selection'] = $this->getFieldType()->getSelection();
     }
     return $array;
 }
示例#3
0
文件: Bundle.php 项目: jarves/jarves
 /**
  * @param bool $printDefaults
  * @return array
  */
 public function toArray($printDefaults = false)
 {
     $value['name'] = $this->getBundleName();
     $value['class'] = get_class($this->getBundleClass());
     $value = array_merge($value, parent::toArray($printDefaults));
     return $value;
 }