/** * Checks if current page is an ajax page * @param boolean $checkIsWebProcess Specifies if methods has to use isWebProcess method * @return boolean Current page is an ajax page */ public static function isAjaxContext() { return SystemTool::isWebProcess() && SystemTool::$context == SystemTool::CONTEXT_AJAX; }
/** * Checks if context allowed translation */ public static function isTranslationAllowed() { // No gettext in other context than web return SystemTool::isWebProcess(); }