function view() { if (isset($this->_data['option'])) { switch ($this->_data['option']) { case 'ticket_statuses': $model = new $this->setup_options['ticket_statuses'](); $this->extra_fields['ticket_statuses'] = array('status_code' => array('type' => 'select', 'options' => $model->getEnumOptions('status_code'))); break; } } parent::view(); }
protected function registerPreference() { parent::registerPreference(); $showAllOrders = $this->module_preferences['show-all-orders']['preference']; $this->preferences->registerPreference(array('name' => 'show-all-orders', 'display_name' => $this->module_preferences['show-all-orders']['title'], 'type' => 'checkbox', 'status' => empty($showAllOrders) || $showAllOrders == 'off' ? 'off' : 'on', 'default' => 'off')); }
protected function registerPreference() { parent::registerPreference(); $autoAccountNumbering = $this->module_preferences['auto-account-numbering']['preference']; $this->preferences->registerPreference(array('name' => 'auto-account-numbering', 'display_name' => $this->module_preferences['auto-account-numbering']['title'], 'type' => 'checkbox', 'status' => empty($autoAccountNumbering) || $autoAccountNumbering == 'off' ? 'off' : 'on', 'default' => 'off')); }
protected function registerPreference() { parent::registerPreference(); $disableSOrdersStopped = $this->module_preferences['disable-orders-stopped']['preference']; $this->preferences->registerPreference(array('name' => 'disable-orders-stopped', 'display_name' => $this->module_preferences['disable-orders-stopped']['title'], 'type' => 'checkbox', 'status' => empty($disableSOrdersStopped) || $disableSOrdersStopped == 'off' ? 'off' : 'on', 'default' => 'off')); }