Beispiel #1
0
 public static function getInstance()
 {
     if (self::$_instance == null) {
         self::$_instance = new JofeApplication();
     }
     return self::$_instance;
 }
Beispiel #2
0
 public function _processUpdate($post)
 {
     if (empty($post)) {
         return true;
     }
     $tbl = $this->getResource();
     if ($tbl != null) {
         if ($tbl->bind($post) && $tbl->store()) {
             JofeApplication::enqueueMessage('Updated.');
         }
     }
     return true;
 }
Beispiel #3
0
 public function getComponent()
 {
     return JofeApplication::getComponent(JofeComponent::parseComponentName($this));
 }
Beispiel #4
0
 public function run()
 {
     $app =& JofeApplication::getInstance();
     $app->setComponent($this);
     $this->prepare();
     $controller = $this->getController(JRequest::getWord('controller'));
     $task = JRequest::getWord('task');
     $controller->execute($task);
     $controller->redirect();
 }