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
 /**
  * Constructor
  *
  * @param ICE_Map $values A map of possible values
  */
 public function __construct(ICE_Map $values = null)
 {
     // run parent contructor
     parent::__construct();
     // were values passed?
     if ($values) {
         // yes, use them
         $this->values = $values;
     } else {
         // no, use new empty map
         $this->values = new ICE_Map();
     }
     // every property allows inherit
     $this->values->add('inherit', __('Inherit', infinity_text_domain));
 }