コード例 #1
0
ファイル: Checkbox.php プロジェクト: techart/tao
 public function render($values = array())
 {
     if (empty($values)) {
         $values = array(0 => 'Нет', 1 => 'Да');
     }
     $v = parent::render();
     return $values[$v];
 }
コード例 #2
0
ファイル: ExtendedMultilang.php プロジェクト: techart/tao
 public function render()
 {
     if (!$this->type->access($this->name, $this->data, 'container_render', $this->item, $this)) {
         return '';
     }
     $values = $this->value();
     if (!is_array($values)) {
         return parent::render();
     }
     return $values[CMS::site_lang()];
 }