/** * @param String $name Name of the option * @param array $translations Array with translations for option. * @param array $data */ public function __construct($name, $translations, $data) { parent::__construct($name, $translations, $data); $this->color = $data['color']; if (isset($data['choice'])) { $this->choice = $data['choice']; } }
/** * @param String $name Name of the option * @param array $translations Array with translations for option. * @param array $data */ public function __construct($name, $translations, $data) { parent::__construct($name, $translations, $data); $this->string = isset($data['textvalue']) ? $data['textvalue'] : ''; $this->regex = isset($data['regex']) ? $data['regex'] : null; $this->html = isset($data['html']) ? $data['html'] : false; $this->regexError = isset($data['regexError']) ? $data['regexError'] : ''; }
/** * @param String $name Name of the option * @param array $translations Array with translations for option. * @param array $data */ public function __construct($name, $translations, $data) { parent::__construct($name, $translations, $data); foreach ($data['urls'] as $key => $url) { if (!empty($url)) { $this->urls[$key] = $url; } } }
/** * @param String $name Name of the option * @param array $translations Array with translations for option. * @param array $data */ public function __construct($name, $translations, $data) { parent::__construct($name, $translations, $data); $this->activeChoice = isset($data['activeChoice']) ? $data['activeChoice'] : ''; $this->choice = isset($data['choice']) ? $data['choice'] : ''; }
/** * @param String $name Name of the option * @param array $translations Array with translations for option. * @param array $data */ public function __construct($name, $translations, $data) { parent::__construct($name, $translations, $data); $this->active = $data['active'] == 'true'; }
/** * @param String $name Name of the option * @param array $translations Array with translations for option. * @param array $data */ public function __construct($name, $translations, $data) { parent::__construct($name, $translations, $data); $this->url = $data['url']; }