public function render($values = array()) { if (empty($values)) { $values = array(0 => 'Нет', 1 => 'Да'); } $v = parent::render(); return $values[$v]; }
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()]; }