本文整理汇总了PHP中xajaxArgumentManager类的典型用法代码示例。如果您正苦于以下问题:PHP xajaxArgumentManager类的具体用法?PHP xajaxArgumentManager怎么用?PHP xajaxArgumentManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了xajaxArgumentManager类的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);
}
开发者ID:johnfelipe,项目名称:orfeo,代码行数:8,代码来源:catchAllFunctionTest.php
示例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;
}
开发者ID:johnfelipe,项目名称:orfeo,代码行数:15,代码来源:preFunctionTest.php
示例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);
}
开发者ID:krisldz,项目名称:Gekosale2,代码行数:16,代码来源:xajaxResponse.inc.php
示例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();
}
开发者ID:alex-k,项目名称:velotur,代码行数:27,代码来源:xajax.inc.php
示例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.';
}
开发者ID:horrabin,项目名称:opendb,代码行数:16,代码来源:xajaxEventPlugin.inc.php
示例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.';
}
开发者ID:Alrasan,项目名称:e-shop_smarty,代码行数:16,代码来源:xajaxFunctionPlugin.inc.php
示例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.';
}
开发者ID:xajax,项目名称:xajax,代码行数:21,代码来源:xajaxCallableObjectPlugin.inc.php
示例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.';
}
开发者ID:nextbook438,项目名称:osezno-php-framework,代码行数:31,代码来源:upload.inc.php
示例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;
}
开发者ID:haseok86,项目名称:millkencode,代码行数:31,代码来源:xajax.inc.php
注:本文中的xajaxArgumentManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论