Ejemplo n.º 1
0
 /**
  * Test case method
  */
 public function testArrayCollectionSet()
 {
     $collection = new Enlight_Collection_ArrayCollection();
     $collection->setKeyOne('wert123');
     $this->assertEquals('wert123', $collection->getKeyOne());
     $collection->key_one = 'wert145';
     $this->assertEquals('wert145', $collection->key_one);
 }
Ejemplo n.º 2
0
 /**
  * The Enlight_Event_EventArgs class constructor expects the name of the event.
  *
  * @param              $name
  * @param   array|null $args
  */
 public function __construct(array $args = array())
 {
     parent::__construct($args);
 }
Ejemplo n.º 3
0
 /**
  * Default set function to set the value to the given property
  *
  * @param $key
  * @param $value
  */
 public function set($key, $value)
 {
     if ($this->containsKey($key)) {
         parent::set($key, $value);
     }
 }
Ejemplo n.º 4
0
 /**
  * The Enlight_Event_EventArgs class constructor expects the name of the event.
  *
  * @param              $name
  * @param   array|null $args
  */
 public function __construct($name, array $args = null)
 {
     $this->_name = $name;
     parent::__construct($args);
 }