本文整理汇总了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");