Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param array $values An array of possible values
  */
 public function __construct($values = null)
 {
     // run parent contructor
     parent::__construct();
     // were values passed?
     if (is_array($values) && count($values)) {
         // yes, use them
         $this->values = $values;
     }
     // every property allows inherit
     $this->values['inherit'] = __('Inherit', infinity_text_domain);
 }
Exemplo n.º 2
0
 /**
  */
 public function __get($name)
 {
     switch ($name) {
         case 'values':
             return $this->values;
         default:
             return parent::__get($name);
     }
 }