From 47d05516b1d1c465217c59732bf8442ab0cfd497 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 5 May 2006 06:58:04 +0000 Subject: Added prioritize callback and enabled viewstate update on callback return. --- framework/Web/UI/TControl.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 860b6baf..3bb893e2 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -997,6 +997,14 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable { return isset($this->_rf[self::RF_NAMED_OBJECTS][$name]); } + + /** + * @return boolean true if the control has been initialized. + */ + public function getIsInitialized() + { + return $this->getControlStage() >= self::CS_CHILD_INITIALIZED; + } /** * Returns the named registered object. -- cgit v1.2.3