本文整理匯總了PHP中TinyAjax::setRequestType方法的典型用法代碼示例。如果您正苦於以下問題:PHP TinyAjax::setRequestType方法的具體用法?PHP TinyAjax::setRequestType怎麽用?PHP TinyAjax::setRequestType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TinyAjax
的用法示例。
在下文中一共展示了TinyAjax::setRequestType方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: TinyAjax
// opcache_reset();
require_once "TinyAjax.php";
require_once "TinyAjaxBehavior.php";
require_once "vars.php";
require_once "includes/dvrui_hdhrbintools.php";
require_once "includes/dvrui_recordengine_loglist.php";
require_once "logfile.php";
require_once "statusmessage.php";
require_once "recordings.php";
require_once "server.php";
require_once "hdhr.php";
require_once "theme.php";
/* Prepare Ajax */
// error_log( "Setting up Ajax" );
$ajax = new TinyAjax();
$ajax->setRequestType("POST");
// Change request-type from GET to POST
$ajax->showLoading();
// Show loading while callback is in progress
/* Export the PHP Interface */
// error_log( "Setting up Ajax functions" );
$ajax->exportFunction("getLogFile", "filename");
$ajax->exportFunction("rmLogFile", "filename");
$ajax->exportFunction("updateRecordPath", "recordPath");
$ajax->exportFunction("updateServerPort", "serverPort");
$ajax->exportFunction("changeDvrState", "option");
$ajax->exportFunction("openLogPage", "");
$ajax->exportFunction("openRecordingsPage", "");
$ajax->exportFunction("openHDHRPage", "");
$ajax->exportFunction("openServerPage", "");
$ajax->exportFunction("deleteRecordingByID", "id, rerecord");