Пример #1
0
 /**
  * {@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
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['items' => $this->itemsToArray()] + parent::toArray();
 }