示例#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
 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()];
 }