Public Attributes | |
$allow_rewrite = FALSE | |
$request_method = 'GET' | |
$js_callback_func = '' | |
$response_method = '' | |
$context = NULL | |
$db_info = NULL | |
$ftp_info = NULL | |
$sslActionCacheFile = './files/cache/sslCacheFile.php' | |
$ssl_actions = array() | |
$oFrontEndFileHandler | |
$html_header = NULL | |
$body_class = array() | |
$body_header = NULL | |
$html_footer = NULL | |
$path = '' | |
$lang_type = '' | |
$lang = NULL | |
$loaded_lang_files = array() | |
$site_title = '' | |
$get_vars = NULL | |
$is_uploaded = FALSE | |
$patterns | |
$isSuccessInit = TRUE | |
Manages Context such as request arguments/environment variables It has dual method structure, easy-to use methods which can be called as self::methodname(),and methods called with static object.
Definition at line 14 of file Context.class.php.
Context::__construct | ( | ) |
Context::_checkGlobalVars | ( | ) |
Context::_evalxmlLang | ( | $path | ) |
Evaluation of xml language file
string | Path of the language file |
Definition at line 903 of file Context.class.php.
Context::_filterRequestVar | ( | $key, | |
$val, | |||
$do_stripslashes = true , |
|||
$remove_hack = false |
|||
) |
Filter request variable
string | $key | Variable key |
string | $val | Variable value |
string | $do_stripslashes | Whether to strip slashes |
Definition at line 1401 of file Context.class.php.
Context::_filterXmlVars | ( | $key, | |
$val | |||
) |
Filter xml variables
string | $key | Variable key |
object | $val | Variable value |
Definition at line 1348 of file Context.class.php.
Context::_getBrowserTitle | ( | ) |
Context::_getUniqueFileList | ( | $files | ) |
Same as array_unique but works only for file subscript
array | $files | File list |
Definition at line 2304 of file Context.class.php.
Context::_loadPhpLang | ( | $path | ) |
Load language file of php type
string | $path | Path of the language file |
Definition at line 951 of file Context.class.php.
Context::_loadXmlLang | ( | $path | ) |
Load language file of xml type
string | $path | Path of the language file |
Definition at line 937 of file Context.class.php.
Context::_recursiveCheckVar | ( | $val | ) |
Definition at line 1261 of file Context.class.php.
Context::_setJSONRequestArgument | ( | ) |
Context::_setRequestArgument | ( | ) |
handle request arguments for GET/POST
Definition at line 1218 of file Context.class.php.
Context::_setUploadedArgument | ( | ) |
Context::_setXmlRpcArgument | ( | ) |
Context::addBodyClass | ( | $class_name | ) |
Add css class to Html Body
string | $class_name | class name |
Definition at line 2535 of file Context.class.php.
Context::addBodyHeader | ( | $header | ) |
Add html code after <body>
string | $header | Add html code after <body> |
Definition at line 2559 of file Context.class.php.
Context::addBrowserTitle | ( | $site_title | ) |
Add string to browser title
string | $site_title | Browser title to be added |
Definition at line 778 of file Context.class.php.
Context::addCSSFile | ( | $file, | |
$optimized = FALSE , |
|||
$media = 'all' , |
|||
$targetie = '' , |
|||
$index = 0 |
|||
) |
Add CSS file
string | $file | File name with path |
string | $optimized | optimized (That seems to not use) |
string | $media | Media query |
string | $targetie | target IE |
string | $index | index |
Definition at line 2345 of file Context.class.php.
Context::addHtmlFooter | ( | $footer | ) |
Add html code before </body>
string | $footer | Add html code before </body> |
Definition at line 2581 of file Context.class.php.
Context::addHtmlHeader | ( | $header | ) |
Add html code before </head>
string | $header | add html code before </head>. |
Definition at line 2507 of file Context.class.php.
Context::addJsFile | ( | $file, | |
$optimized = FALSE , |
|||
$targetie = '' , |
|||
$index = 0 , |
|||
$type = 'head' , |
|||
$isRuleset = FALSE , |
|||
$autoPath = null |
|||
) |
Add the js file
string | $file | File name with path |
string | $optimized | optimized (That seems to not use) |
string | $targetie | target IE |
string | $index | index |
string | $type | Added position. (head:<head>..</head>, body:<body>..</body>) |
bool | $isRuleset | Use ruleset |
string | $autoPath | If path not readed, set the path automatically. |
Definition at line 2237 of file Context.class.php.
Context::addJsFilter | ( | $path, | |
$filename | |||
) |
Add javascript filter
string | $path | File path |
string | $filename | File name |
Definition at line 2291 of file Context.class.php.
Context::addMetaTag | ( | $name, | |
$content, | |||
$is_http_equiv = FALSE |
|||
) |
Add the meta tag
string | $name | name of meta tag |
string | $content | content of meta tag |
mixed | $is_http_equiv | value of http_equiv |
Definition at line 2738 of file Context.class.php.
Context::addSSLAction | ( | $action | ) |
Register if an action is to be encrypted by SSL. Those actions are sent to https in common/js/xml_handler.js
string | $action | act name |
Definition at line 2039 of file Context.class.php.
Context::addSSLActions | ( | $action_array | ) |
Register if actions are to be encrypted by SSL. Those actions are sent to https in common/js/xml_handler.js
string | $action | act name |
Definition at line 2063 of file Context.class.php.
Context::checkConvertFlag | ( | & | $val, |
$key = null , |
|||
$charset = null |
|||
) |
Check flag
mixed | $val | |
string | $key | |
mixed | $charset | charset |
Definition at line 1081 of file Context.class.php.
Context::checkSSO | ( | ) |
Single Sign On (SSO)
Definition at line 653 of file Context.class.php.
Context::clearHtmlHeader | ( | ) |
Definition at line 2513 of file Context.class.php.
Context::close | ( | ) |
Finalize using resources, such as DB connection
Definition at line 437 of file Context.class.php.
Context::convertEncoding | ( | $source_obj | ) |
Convert strings of variables in $source_object into UTF-8
object | $source_obj | Conatins strings to convert |
Definition at line 1043 of file Context.class.php.
Context::convertEncodingStr | ( | $str | ) |
Convert strings into UTF-8
string | $str | String to convert |
Definition at line 1123 of file Context.class.php.
Context::decodeIdna | ( | $domain | ) |
Definition at line 1132 of file Context.class.php.
Context::doConvertEncoding | ( | & | $val, |
$key = null , |
|||
$charset | |||
) |
Convert array type variables into UTF-8
mixed | $val | |
string | $key | |
string | $charset | character set |
Definition at line 1108 of file Context.class.php.
Context::get | ( | $key | ) |
Return key's value
string | $key | Key |
Definition at line 1973 of file Context.class.php.
Context::getAbsFileUrl | ( | $file | ) |
Get abstract file url
string | $file | file path |
Definition at line 2159 of file Context.class.php.
Context::getAll | ( | ) |
Context::getBodyClass | ( | ) |
Return css class to Html Body
Definition at line 2546 of file Context.class.php.
Context::getBodyHeader | ( | ) |
Returns added html code by addBodyHeader()
Definition at line 2570 of file Context.class.php.
Context::getBrowserTitle | ( | ) |
Get browser title
Definition at line 817 of file Context.class.php.
Context::getConfigFile | ( | ) |
Get config file
string The path of the config file that contains database settings
Definition at line 2603 of file Context.class.php.
Context::getCSSFile | ( | ) |
Return a list of css files
Definition at line 2383 of file Context.class.php.
Context::getDBInfo | ( | ) |
Context::getDBType | ( | ) |
Context::getDefaultUrl | ( | ) |
Context::getFTPConfigFile | ( | ) |
Get FTP config file
Definition at line 2613 of file Context.class.php.
Context::getFTPInfo | ( | ) |
Context::getHtmlFooter | ( | ) |
Returns added html code by addHtmlHeader()
Definition at line 2592 of file Context.class.php.
Context::getHtmlHeader | ( | ) |
Returns added html code by addHtmlHeader()
Definition at line 2524 of file Context.class.php.
& Context::getInstance | ( | ) |
returns static context object (Singleton). It's to use Context without declaration of an object
Definition at line 162 of file Context.class.php.
Context::getJavascriptPluginInfo | ( | $pluginName | ) |
Returns javascript plugin file info
string | $pluginName |
Definition at line 2394 of file Context.class.php.
Context::getJSCallbackFunc | ( | ) |
Return js callback func.
Definition at line 1569 of file Context.class.php.
Context::getJsFile | ( | $type = 'head' | ) |
Returns the list of javascripts that matches the given type.
string | $type | Added position. (head:<head>..</head>, body:<body>..</body>) |
Definition at line 2327 of file Context.class.php.
Context::getLang | ( | $code | ) |
Return string accoring to the inputed code
string | $code | Language variable name |
Definition at line 1008 of file Context.class.php.
Context::getLangType | ( | ) |
Context::getMetaTag | ( | ) |
Context::getRequestMethod | ( | ) |
Return request method
Definition at line 1537 of file Context.class.php.
Context::getRequestUri | ( | $ssl_mode = FOLLOW_REQUEST_SSL , |
|
$domain = null |
|||
) |
Return after removing an argument on the requested URL
string | $ssl_mode | SSL mode |
string | $domain | Domain string converted URL |
Definition at line 1849 of file Context.class.php.
Context::getRequestUrl | ( | ) |
Context::getRequestVars | ( | ) |
Return values from the GET/POST/XMLRPC
Definition at line 2023 of file Context.class.php.
Context::getResponseMethod | ( | ) |
Get reponse method
Definition at line 1163 of file Context.class.php.
Context::gets | ( | ) |
Get one more vars in object vars with given arguments(key1, key2, key3,...)
Definition at line 1989 of file Context.class.php.
Context::getSiteTitle | ( | ) |
Return layout's title
Definition at line 831 of file Context.class.php.
Context::getSSLActions | ( | ) |
Context::getSslStatus | ( | ) |
Return ssl status
Definition at line 572 of file Context.class.php.
Context::getUrl | ( | $num_args = 0 , |
|
$args_list = array() , |
|||
$domain = null , |
|||
$encode = TRUE , |
|||
$autoEncode = FALSE |
|||
) |
Make URL with args_list upon request URL
int | $num_args | Arguments nums |
array | $args_list | Argument list for set url |
string | $domain | Domain |
bool | $encode | If TRUE, use url encode. |
bool | $autoEncode | If TRUE, url encode automatically, detailed. Use this option, $encode value should be TRUE |
Definition at line 1594 of file Context.class.php.
Context::init | ( | ) |
Initialization, it sets DB information, request arguments and so on.
Definition at line 201 of file Context.class.php.
Context::isAllowRewrite | ( | ) |
Check whether it is allowed to use rewrite mod
Definition at line 2644 of file Context.class.php.
Context::isExistsSSLAction | ( | $action | ) |
Check SSL action are existed
string | $action | act name |
Definition at line 2124 of file Context.class.php.
Context::isFTPRegisted | ( | ) |
Check if FTP info is registered
Definition at line 748 of file Context.class.php.
Context::isInstalled | ( | ) |
Checks whether XE is installed
Definition at line 2623 of file Context.class.php.
Context::isUploaded | ( | ) |
Check if there exists uploaded file
Definition at line 1475 of file Context.class.php.
Context::loadDBInfo | ( | ) |
Context::loadFile | ( | $args | ) |
Load front end file
array | $args | array case js : $args[0]: file name, $args[1]: type (head | body), $args[2]: target IE, $args[3]: index case css : $args[0]: file name, $args[1]: media, $args[2]: target IE, $args[3]: index |
Definition at line 2191 of file Context.class.php.
Context::loadJavascriptPlugin | ( | $plugin_name | ) |
Load javascript plugin
string | $plugin_name | plugin name |
Definition at line 2449 of file Context.class.php.
Context::loadLang | ( | $path | ) |
Load language file according to language type
string | $path | Path of the language file |
Definition at line 858 of file Context.class.php.
Context::loadLangSelected | ( | ) |
Find selected languages to serve in the site
Definition at line 615 of file Context.class.php.
Context::loadLangSupported | ( | ) |
Find supported languages
Definition at line 594 of file Context.class.php.
Context::normalizeFilePath | ( | $file | ) |
Normalize file path
string | $file | file path |
Definition at line 2137 of file Context.class.php.
Context::pathToUrl | ( | $path | ) |
Converts a local path into an URL
string | $path | URL path |
Definition at line 2656 of file Context.class.php.
Context::set | ( | $key, | |
$val, | |||
$set_to_get_vars = 0 |
|||
) |
Set a context value with a key
string | $key | Key |
mixed | $val | Value |
mixed | $set_to_get_vars | If not FALSE, Set to get vars. |
Definition at line 1948 of file Context.class.php.
Context::setBrowserTitle | ( | $site_title | ) |
Set string to browser title
string | $site_title | Browser title to be set |
Definition at line 802 of file Context.class.php.
Context::setDBInfo | ( | $db_info | ) |
Set DB information
object | $db_info | DB information |
Definition at line 550 of file Context.class.php.
Context::setLang | ( | $code, | |
$val | |||
) |
Set data to lang variable
string | $code | Language variable name |
string | $val | $code s value |
Definition at line 1028 of file Context.class.php.
Context::setLangType | ( | $lang_type = 'ko' | ) |
Set lang_type
string | $lang_type | Language type. |
Definition at line 981 of file Context.class.php.
Context::setRequestMethod | ( | $type = '' | ) |
Determine request method
string | $type | Request method. (Optional - GET|POST|XMLRPC|JSON) |
Definition at line 1184 of file Context.class.php.
Context::setResponseMethod | ( | $method = 'HTML' | ) |
Force to set response method
string | $method | Response method. [HTML|XMLRPC|JSON] |
Definition at line 1150 of file Context.class.php.
Context::subtractSSLAction | ( | $action | ) |
Delete if action is registerd to be encrypted by SSL.
string | $action | act name |
Definition at line 2091 of file Context.class.php.
Context::transContent | ( | $content | ) |
Transforms codes about widget or other features into the actual code, deprecatred
string | Transforms codes |
Definition at line 2634 of file Context.class.php.
Context::unloadAllCSSFiles | ( | ) |
Context::unloadAllFiles | ( | $type = 'all' | ) |
Unload front end file all
string | $type | Unload target (optional - all|css|js) |
Definition at line 2218 of file Context.class.php.
Context::unloadAllJsFiles | ( | ) |
Context::unloadCSSFile | ( | $file, | |
$optimized = FALSE , |
|||
$media = 'all' , |
|||
$targetie = '' |
|||
) |
Remove css file
string | $file | File name with path |
string | $optimized | optimized (That seems to not use) |
string | $media | Media query |
string | $targetie | target IE |
Definition at line 2361 of file Context.class.php.
Context::unloadFile | ( | $file, | |
$targetIe = '' , |
|||
$media = 'all' |
|||
) |
Unload front end file
string | $file | File name with path |
string | $targetIe | Target IE |
string | $media | Media query |
Definition at line 2206 of file Context.class.php.
Context::unloadJsFile | ( | $file, | |
$optimized = FALSE , |
|||
$targetie = '' |
|||
) |
Remove the js file
string | $file | File name with path |
string | $optimized | optimized (That seems to not use) |
string | $targetie | target IE |
Definition at line 2267 of file Context.class.php.
Context::$allow_rewrite = FALSE |
Definition at line 21 of file Context.class.php.
Context::$body_class = array() |
Definition at line 87 of file Context.class.php.
Context::$body_header = NULL |
Definition at line 93 of file Context.class.php.
Context::$context = NULL |
Definition at line 45 of file Context.class.php.
Context::$db_info = NULL |
Definition at line 51 of file Context.class.php.
Context::$ftp_info = NULL |
Definition at line 57 of file Context.class.php.
Context::$get_vars = NULL |
Definition at line 135 of file Context.class.php.
Context::$html_footer = NULL |
Definition at line 99 of file Context.class.php.
Context::$html_header = NULL |
Definition at line 81 of file Context.class.php.
Context::$is_uploaded = FALSE |
Definition at line 141 of file Context.class.php.
Context::$isSuccessInit = TRUE |
Definition at line 155 of file Context.class.php.
Context::$js_callback_func = '' |
Definition at line 33 of file Context.class.php.
Context::$lang = NULL |
Definition at line 117 of file Context.class.php.
Context::$lang_type = '' |
Definition at line 111 of file Context.class.php.
Context::$loaded_lang_files = array() |
Definition at line 123 of file Context.class.php.
Context::$oFrontEndFileHandler |
Definition at line 75 of file Context.class.php.
Context::$path = '' |
Definition at line 105 of file Context.class.php.
Context::$patterns |
Definition at line 146 of file Context.class.php.
Context::$request_method = 'GET' |
Definition at line 27 of file Context.class.php.
Context::$response_method = '' |
Definition at line 39 of file Context.class.php.
Context::$site_title = '' |
Definition at line 129 of file Context.class.php.
Context::$ssl_actions = array() |
Definition at line 69 of file Context.class.php.
Context::$sslActionCacheFile = './files/cache/sslCacheFile.php' |
Definition at line 63 of file Context.class.php.