예제 #1
0
파일: Field.php 프로젝트: guratr/cruddy
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['field' => $this->id] + parent::toArray();
 }
예제 #2
0
 public function toArray($filterVariableContent = false, &$filtered = array())
 {
     $data = parent::toArray($filterVariableContent, $filtered);
     $data['mathML'] = $this->mathML;
     $data['annotations'] = $this->annotations;
     return $data;
 }
예제 #3
0
파일: Container.php 프로젝트: guratr/cruddy
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['items' => $this->itemsToArray()] + parent::toArray();
 }