예제 #1
0
 /**
  * @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'];
     }
 }
예제 #2
0
 /**
  * @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'] : '';
 }
예제 #3
0
 /**
  * @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;
         }
     }
 }
예제 #4
0
 /**
  * @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'] : '';
 }
예제 #5
0
 /**
  * @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';
 }
예제 #6
0
 /**
  * @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'];
 }