public function setValuesByObject($object) {

		if (is_object($object) and is_subclass_of($object, 'Pair\ActiveRecord')) {

			$properties = $object->getAllProperties();

			foreach ($properties as $name=>$value) {
				if (array_key_exists($name, $this->controls)) {
					$control = $this->getControl($name);
					$control->setValue($value);
				}
			}
			
		}
		
	}
public function setValuesByObject($object) {

		if (is_object($object) and is_subclass_of($object, 'Pair\ActiveRecord')) {

			$properties = $object->getAllProperties();

			foreach ($properties as $name=>$value) {
				if (array_key_exists($name, $this->controls)) {
					$control = $this->getControl($name);
					$control->setValue($value);
				}
			}
			
		}
		
	}
public function setValuesByObject ( $ object ) { if ( is_object ( $ object ) and is_subclass_of ( $ object , 'Pair\ActiveRecord' ) ) { $ properties = $ object -> getAllProperties ( ) ; foreach ( $ properties as $ name => $ value ) { if ( array_key_exists ( $ name , $ this -> controls ) ) { $ control = $ this -> getControl ( $ name ) ; $ control -> setValue ( $ value ) ; } } } }
Assigns all attributes of passed ActiveRecord children to controls with same name.

@param	multitype	An object inherited by ActiveRecord.
Assigns all attributes of passed ActiveRecord children to controls with same name .