/** * @see parent::__construct() */ function __construct($className, $field, $prop = null, $aProperties = array()) { parent::__construct($className, $field, $prop, $aProperties); foreach ($this->_list = array(0, 1) as $value) { $this->_locales[$value] = CAppUI::tr("bool.{$value}"); } }
/** * @see parent::__construct() */ function __construct($className, $field, $prop = null, $aProperties = array()) { parent::__construct($className, $field, $prop, $aProperties); $this->_list = $this->getListValues($this->list); $this->_locales = array(); foreach ($this->_list as $value) { $this->_locales[$value] = CAppUI::tr("{$className}.{$field}.{$value}"); } }