Example #1
0
 /**
  * getModelWidgets
  * @return Model_Widgets
  * @author Thomas Schedler <*****@*****.**>
  * @version 1.0
  */
 protected function getModelWidgets()
 {
     if (null === $this->objModelWidgets) {
         /**
          * autoload only handles "library" compoennts.
          * Since this is an application model, we need to require it
          * from its modules path location.
          */
         require_once GLOBAL_ROOT_PATH . $this->core->sysConfig->path->zoolu_modules . 'cms/models/Widgets.php';
         $this->objModelWidgets = new Model_Widgets();
         $this->objModelWidgets->setLanguageId($this->objElement->Setup()->getLanguageId());
     }
     return $this->objModelWidgets;
 }