/**
  * Returns the module object that contains the component or the page containing the component.
  * This method is overriden by TPage.
  * @return TModule the module object that contains the component or the page containing the component.
  */
 public function getModule()
 {
     if ($this->root instanceof TPage) {
         return $this->root->getModule();
     } else {
         return $this->root;
     }
 }