示例#1
0
 public function getTitle()
 {
     if ($title = $this->getConfig()->getOption('login_form_title')) {
         return waLocale::fromArray($title);
     }
     return wa()->getSetting('name', 'Webasyst', 'webasyst');
 }
 /**
  * @param string $id id as stored in database
  * @param waWorkflow $workflow
  * @param array $options option => value
  */
 public function __construct($id, waWorkflow $workflow, $options = array())
 {
     parent::__construct($id, $workflow, $options['options']);
     if (isset($options['name'])) {
         $this->name = waLocale::fromArray($options['name']);
     }
     if (isset($options['available_actions'])) {
         $this->available_actions = $options['available_actions'];
     }
 }
 /**
  * @param string $id id as stored in database
  * @param waWorkflow $workflow
  * @param array $options option => value
  */
 public function __construct($id, waWorkflow $workflow, $options = array())
 {
     parent::__construct($id, $workflow, $options['options']);
     if (isset($options['name'])) {
         $this->name = waLocale::fromArray($options['name']);
     }
     if (isset($options['state'])) {
         $this->state_id = $options['state'];
     }
     if (empty($this->options['log_record'])) {
         $this->options['log_record'] = $this->getName();
     }
 }