*/ /** * Manages Context such as request arguments/environment variables * * @author NAVER (developers@xpressengine.com) */ class Context { /** * Request method * @var string GET|POST|XMLRPC|JSON */ public $request_method = 'GET'; /** * Response method.If it's not set, it follows request method. * @var string HTML|XMLRPC|JSON|JS_CALLBACK */ public $response_method = ''; /** * js callback function name. * @var string */ public $js_callback_func = ''; /** * DB info * @var object */ public $db_info = NULL; /** * FTP info * @var object */ public $ftp_info = NULL; /** * site's browser title * @var string */ public $browser_title = ''; /** * script codes in
.. * @var string */ public $html_header = ''; /** * class names of * @var array */ public $body_class = array(); /** * codes after * @var string */ public $body_header = ''; /** * class names before * @var string */ public $html_footer = ''; /** * Meta tags * @var array */ public $meta_tags = array(); public $meta_images = array(); /** * OpenGraph metadata * @var array */ public $opengraph_metadata = array(); /** * Canonical URL * @var string */ public $canonical_url = ''; /** * language type - changed by HTTP_USER_AGENT or user's cookie * @var string */ public $lang_type = ''; /** * contains language-specific data * @var object */ public $lang = NULL; /** * Checks uploaded * @var bool TRUE if attached file exists */ public $is_uploaded = FALSE; /** * Checks if the site is locked * @var bool TRUE if the site is locked */ public $is_site_locked = FALSE; /** * Result of initial security check * @var string|bool */ public $security_check = 'OK'; /** * Singleton instance * @var object */ private static $_instance = null; /** * Flag to prevent calling init() twice */ private static $_init_called = false; /** * Current route information */ private static $_route_info = null; /** * object oFrontEndFileHandler() * @var object */ private static $_oFrontEndFileHandler = null; /** * Plugin blacklist cache */ private static $_blacklist = null; /** * Reserved words cache */ private static $_reserved_words = null; /** * Reserved keys cache */ private static $_reserved_keys = array( '_rx_ajax_compat' => true, '_rx_ajax_form' => true, '_rx_csrf_token' => true, ); /** * Pattern for request vars check * @var array */ private static $_check_patterns = array( '@<(?:\?|%)@' => 'DENY ALL', '@