本文整理汇总了PHP中xajaxArgumentManager::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP xajaxArgumentManager::getInstance方法的具体用法?PHP xajaxArgumentManager::getInstance怎么用?PHP xajaxArgumentManager::getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xajaxArgumentManager
的用法示例。
在下文中一共展示了xajaxArgumentManager::getInstance方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onInvalidRequest
function onInvalidRequest()
{
$objArgumentManager =& xajaxArgumentManager::getInstance();
$aArgs = $objArgumentManager->process();
$objResponse = new xajaxResponse();
$objResponse->alert("This is from the invalid request handler");
return test2ndFunction($aArgs[0], $objResponse);
}
示例2: beforeProcessing
function beforeProcessing(&$bEndRequest)
{
$objResponse = new xajaxResponse();
$objArgumentManager =& xajaxArgumentManager::getInstance();
$args = $objArgumentManager->process();
if ($args[1] == 0) {
$get = print_r($_GET, true);
$post = print_r($_POST, true);
$objResponse->alert($this->message . ', which will now allow the request to continue:' . "\n" . $get . $post);
return $objResponse;
}
$bEndRequest = true;
$objResponse->alert($this->message . ", which will now end the request.");
return $objResponse;
}
示例3: _sendHeaders
function _sendHeaders()
{
$objArgumentManager = xajaxArgumentManager::getInstance();
if (XAJAX_METHOD_GET == $objArgumentManager->getRequestMethod()) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
}
$sCharacterSet = '';
if ($this->sCharacterEncoding && 0 < strlen(trim($this->sCharacterEncoding))) {
$sCharacterSet = '; charset="' . trim($this->sCharacterEncoding) . '"';
}
$sContentType = $this->getContentType();
header('content-type: ' . $sContentType . ' ' . $sCharacterSet);
}
示例4: __wakeup
function __wakeup()
{
ob_start();
$sLocalFolder = dirname(__FILE__);
//SkipAIO
require $sLocalFolder . '/xajaxPluginManager.inc.php';
require $sLocalFolder . '/xajaxLanguageManager.inc.php';
require $sLocalFolder . '/xajaxArgumentManager.inc.php';
require $sLocalFolder . '/xajaxResponseManager.inc.php';
require $sLocalFolder . '/xajaxRequest.inc.php';
require $sLocalFolder . '/xajaxResponse.inc.php';
//EndSkipAIO
// this is the list of folders where xajax will look for plugins
// that will be automatically included at startup.
$aPluginFolders = array();
$aPluginFolders[] = dirname($sLocalFolder) . '/xajax_plugins';
//SkipAIO
$aPluginFolders[] = $sLocalFolder . '/plugin_layer';
//EndSkipAIO
// Setup plugin manager
$this->objPluginManager =& xajaxPluginManager::getInstance();
$this->objPluginManager->loadPlugins($aPluginFolders);
$this->objLanguageManager =& xajaxLanguageManager::getInstance();
$this->objArgumentManager =& xajaxArgumentManager::getInstance();
$this->objResponseManager =& xajaxResponseManager::getInstance();
$this->sCoreIncludeOutput = ob_get_clean();
}
示例5: processRequest
function processRequest()
{
if (NULL == $this->sRequestedEvent) {
return false;
}
$objArgumentManager =& xajaxArgumentManager::getInstance();
$aArgs = $objArgumentManager->process();
foreach (array_keys($this->aEvents) as $sKey) {
$objEvent =& $this->aEvents[$sKey];
if ($objEvent->getName() == $this->sRequestedEvent) {
$objEvent->fire($aArgs);
return true;
}
}
return 'Invalid event request received; no event was registered with this name.';
}
示例6: processRequest
function processRequest()
{
if (NULL == $this->sRequestedFunction) {
return false;
}
$objArgumentManager = xajaxArgumentManager::getInstance();
$aArgs = $objArgumentManager->process();
foreach (array_keys($this->aFunctions) as $sKey) {
$xuf = $this->aFunctions[$sKey];
if ($xuf->getName() == $this->sRequestedFunction) {
$xuf->call($aArgs);
return true;
}
}
return 'Invalid function request received; no request processor found with this name.';
}
示例7: processRequest
public function processRequest()
{
if (NULL == $this->sRequestedClass) {
return false;
}
if (NULL == $this->sRequestedMethod) {
return false;
}
$objArgumentManager = xajaxArgumentManager::getInstance();
$aArgs = $objArgumentManager->process();
foreach (array_keys($this->aCallableObjects) as $sKey) {
$xco = $this->aCallableObjects[$sKey];
if ($xco->isClass($this->sRequestedClass)) {
if ($xco->hasMethod($this->sRequestedMethod)) {
$xco->call($this->sRequestedMethod, $aArgs);
return true;
}
}
}
return 'Invalid request for a callable object.';
}
示例8: processRequest
public function processRequest()
{
if (NULL == $this->sRequestedFunction) {
return false;
}
header("Content-Type:text/html;\n\n");
$objArgumentManager =& xajaxArgumentManager::getInstance();
$aArgs = $objArgumentManager->process();
if ("getProgress" == $this->sRequestedFunction) {
$this->call($this->sRequestedFunction, $aArgs);
return true;
}
$pid = $_POST['APC_UPLOAD_PROGRESS'];
unset($_POST['APC_UPLOAD_PROGRESS']);
unset($_POST['xjxExtUP']);
$aArgs = array($_POST);
foreach (array_keys($this->aFunctions) as $sKey) {
$xuf =& $this->aFunctions[$sKey];
if ($xuf->getName() == $this->sRequestedFunction) {
$sMethod = $xuf->getName();
$tmp = call_user_func_array($sMethod, $aArgs);
ob_start();
$tmp->_printResponse_XML();
$response = ob_get_clean();
print "<html><head><body><script type='text/javascript'>parent.xajax.ext.uploadProgress.tools.manageResponse('" . $pid . "'," . json_encode($response) . ");</script></body></html>";
print $response;
return true;
}
}
return 'Invalid function request received; no request processor found with this name.';
}
示例9: configure
function configure($sName, $mValue)
{
if ('errorHandler' == $sName) {
if (true === $mValue || false === $mValue) {
$this->bErrorHandler = $mValue;
}
} else {
if ('exitAllowed' == $sName) {
if (true === $mValue || false === $mValue) {
$this->bExitAllowed = $mValue;
}
} else {
if ('cleanBuffer' == $sName) {
if (true === $mValue || false === $mValue) {
$this->bCleanBuffer = $mValue;
}
} else {
if ('logFile' == $sName) {
$this->sLogFile = $mValue;
}
}
}
}
$objPluginManager =& xajaxPluginManager::getInstance();
$objPluginManager->configure($sName, $mValue);
$objArgumentManager =& xajaxArgumentManager::getInstance();
$objArgumentManager->configure($sName, $mValue);
$objResponseManager =& xajaxResponseManager::getInstance();
$objResponseManager->configure($sName, $mValue);
$this->aSettings[$sName] = $mValue;
}