public static function getInstance() { if (self::$_instance == null) { self::$_instance = new JofeApplication(); } return self::$_instance; }
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; }
public function getComponent() { return JofeApplication::getComponent(JofeComponent::parseComponentName($this)); }
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(); }