public static function rebuild($object, $namespace) { $values = myviewstate::getall($namespace); if (count($values) > 0) { foreach ($values as $key => $value) { $function = 'set' . ucfirst($key); $object->{$function}($value); } return true; } else { return false; } }
public function unregisterRequest($col) { unset($this->request[$col]); myviewstate::set($this->namespace, 'request', $this->request); }
/** * Remove the variable * @param string $variable * @param mixed $value */ public function _remove($variable, $value) { parent::_remove($variable, $value); myviewstate::set($this->namespace, $variable, $this->{$variable}); }