Пример #1
0
 public function render_value()
 {
     $rendered_value = '<table border="0">';
     foreach ($this->get_value()->get_values() as $value) {
         $this->_value_field->set_value($value);
         $rendered_value .= '<tr><td>' . $this->_value_field->render_value() . '</td></tr>';
     }
     return $rendered_value . '</table>';
 }
Пример #2
0
 public function set_value(CM_Value_Interface $value)
 {
     $this->_type_field->set_raw_value($value->get_field()->get_type());
     parent::set_value($value);
 }