Esempio n. 1
0
 /**
  * Возвращает читаемое значение для значения
  * @return string
  */
 public function getReadable()
 {
     $return = null;
     $objects = parent::getValue();
     foreach ($objects as $key => $value) {
         $return[$key] = $value->getReadable();
     }
     return $return;
 }
Esempio n. 2
0
 /**
  * Возвращает значение атрибута
  * @return mixed
  */
 public function getValue()
 {
     $value = parent::getValue();
     return $value === null ? $this->getSectionsId() : $value;
 }