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);
				}
			}
			
		}
		
	}