Exemplo n.º 1
0
 /**
  *  Plain import of data into object
  *  @see lmbObject::import()
  *  @param array
  */
 function importRaw($source)
 {
     parent::import($source);
     $this->markDirty(true);
 }
Exemplo n.º 2
0
 function testImportMergesWithExistingProps()
 {
     $object = new lmbObject();
     $object->set('foo', 'hey');
     $object->set('baz', 'wow');
     $object->import(array('foo' => 'test', 'bar' => 'test2'));
     $this->assertEqual($object->get('foo'), 'test');
     $this->assertEqual($object->get('bar'), 'test2');
     $this->assertEqual($object->get('baz'), 'wow');
 }