/** * Set application instance * @param Zoombi_Application $a_application */ public static final function setApplication(Zoombi_Application &$a_application) { Zoombi::getInstance()->m_application =& $a_application; return Zoombi::getInstance(); }
/** * Set application instance * @param ZApplication $a_application */ public static final function setApplication(ZApplication &$a_application) { $i = Zoombi::getInstance(); $a_application->setApplicationBaseDir($i->m_application_base); $i->m_application =& $a_application; $run = strtolower(strval(Zoombi::config('autorun'))); switch ($run) { case '1': case 'ok': case 'on': case 'yes': case 'true': Zoombi::getApplication()->execute(); break; } return true; }