_notice = !empty($args['notice']) ? $args['notice'] : $this->_notice; $this->_inputName = !empty($args['inputName']) ? $args['inputName'] : $this->_inputName; $this->_inputType = !empty($args['inputType']) ? $args['inputType'] : $this->_inputType; $this->_selected = !empty($args['selected']) ? $args['selected'] : $this->_selected; $this->_items = !empty($args['items']) ? $args['items'] : $this->_items; } /** * @copydoc ListHandler::getConfig() */ public function getConfig() { if (is_null($this->_items)) { $this->_items = $this->getItems(); } $config = array( 'inputName' => $this->_inputName, 'inputType' => $this->_inputType, 'selected' => $this->_selected, 'items' => $this->_items, 'i18n' => array( 'title' => __($this->_title), ), ); if ($this->_notice) { $config['i18n']['notice'] = __($this->_notice); } return $config; } }