当前位置: 首页>>代码示例>>PHP>>正文


PHP xajax::register方法代码示例

本文整理汇总了PHP中xajax::register方法的典型用法代码示例。如果您正苦于以下问题:PHP xajax::register方法的具体用法?PHP xajax::register怎么用?PHP xajax::register使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xajax的用法示例。


在下文中一共展示了xajax::register方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: xajax

*/
/*==========================================================
  ARQUIVO : cursos/aplic/avaliacoes/notas.php
  ========================================================== */
$bibliotecas = "../bibliotecas/";
include $bibliotecas . "geral.inc";
include "avaliacoes.inc";
require_once "../xajax_0.5/xajax_core/xajax.inc.php";
//Estancia o objeto XAJAX
$objAjax = new xajax();
$objAjax->configure("characterEncoding", 'ISO-8859-1');
$objAjax->setFlag("decodeUTF8Input", true);
$objAjax->configure('javascript URI', "../xajax_0.5");
$objAjax->configure('errorHandler', true);
//Registre os nomes das fun?es em PHP que voc?quer chamar atrav? do xajax
$objAjax->register(XAJAX_FUNCTION, "MudarCompartilhamentoDinamic");
$objAjax->register(XAJAX_FUNCTION, "MostrarAvaliacoesDinamic");
$objAjax->register(XAJAX_FUNCTION, "ApagarAvalicaoDinamic");
$objAjax->register(XAJAX_FUNCTION, "MostrarParticipacoesDinamic");
$objAjax->register(XAJAX_FUNCTION, "GravarExpressaoDinamic");
// Registra fun��es para uso de menu_principal.php
$objAjax->register(XAJAX_FUNCTION, "DeslogaUsuarioCursoDinamic");
// Manda o xajax executar os pedidos acima.
$objAjax->processRequest();
$cod_ferramenta = 22;
$cod_ferramenta_ajuda = $cod_ferramenta;
$cod_pagina_ajuda = 4;
include "../topo_tela.php";
$usr_formador = EFormador($sock, $cod_curso, $cod_usuario);
$sock = MudarDB($sock, $cod_curso);
$media = RetornaInformacoesMedia($sock);
开发者ID:andisantos,项目名称:TelEduc,代码行数:31,代码来源:notas.php

示例2: xajax

<?php

define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/verify.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'addSubscribe');
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:12,代码来源:verify.common.php

示例3: xajax

<?
define("XAJAX_DEFAULT_CHAR_ENCODING","windows-1251");
require_once($_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/config.php");
$xajax = new xajax("/xajax/employers.server.php");
//$xajax->debugOn();
//$xajax->waitCursorOff(); // Для Fp нужен...
$xajax->configure('decodeUTF8Input',true);
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->register(XAJAX_FUNCTION, "ChangeCity");
$xajax->register(XAJAX_FUNCTION, "AddFav");
?>
开发者ID:notUserDeveloper,项目名称:fl-ru-damp,代码行数:12,代码来源:employers.common.php

示例4: xajax

<?php

$rpath = $rpath ? $rpath : "../";
define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/config.php";
$xajax = new xajax("/xajax/nycomp07.server.php");
//$xajax->debugOn();
$xajax->configure('decodeUTF8Input', true);
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->register(XAJAX_FUNCTION, "UploadPic");
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:11,代码来源:nycomp07.common.php

示例5: dirname

#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#$Id: addcontent.php 8510 2012-11-24 17:04:05Z calguy1000 $
$CMS_ADMIN_PAGE = 1;
require_once "../include.php";
$urlext = '?' . CMS_SECURE_PARAM_NAME . '=' . $_SESSION[CMS_USER_KEY];
check_login();
$userid = get_userid();
define('XAJAX_DEFAULT_CHAR_ENCODING', $config['admin_encoding']);
require_once dirname(dirname(__FILE__)) . '/lib/xajax/xajax_core/xajax.inc.php';
require_once dirname(__FILE__) . '/editcontent_extra.php';
$xajax = new xajax();
$xajax->register(XAJAX_FUNCTION, 'ajaxpreview');
$headtext = $xajax->getJavascript('../lib/xajax') . "\n";
if (isset($_POST["cancel"])) {
    redirect("listcontent.php" . $urlext);
}
require_once "header.php";
$tmpfname = '';
$error = FALSE;
$submit = false;
if (isset($_POST["submitbutton"])) {
    $submit = true;
}
$apply = false;
if (isset($_POST["applybutton"])) {
    $apply = true;
}
开发者ID:Alexkuva,项目名称:Beaupotager,代码行数:31,代码来源:addcontent.php

示例6: testTextResponse

}
function testTextResponse()
{
    $objResponse = new xajaxCustomResponse('text/plain');
    $objResponse->append('text data');
    return $objResponse;
    // return text data directly to the custom response handler function
    return 'text data';
}
$xajax = new xajax();
$xajax->configure('debug', true);
$xajax->configure('useUncompressedScripts', true);
$xajax->configure('javascript URI', '../');
// Tell xajax to permit registered functions to return data other than xajaxResponse objects
$xajax->configure('allowAllResponseTypes', true);
$callXajaxResponse =& $xajax->register(XAJAX_FUNCTION, 'testXajaxResponse');
$callXmlResponse =& $xajax->register(XAJAX_FUNCTION, 'testXmlResponse', array('responseProcessor' => 'xmlResponse'));
$callTextResponse =& $xajax->register(XAJAX_FUNCTION, 'testTextResponse', array('mode' => '"synchronous"', 'responseProcessor' => 'textResponse'));
$xajax->processRequest();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>Non-xajaxResponse XML and Text Responses Test | xajax Tests</title>

        <?php 
$xajax->printJavascript();
?>
开发者ID:silvia-valdez,项目名称:SignalsViewer,代码行数:30,代码来源:nonXajaxResponseTest.php

示例7: xajax

<?php

define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/quickmas.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    //$xajax->setFlag('debug',true);
    $xajax->register(XAJAX_FUNCTION, 'quickMASCheckOrder');
    $xajax->register(XAJAX_FUNCTION, 'quickMASPayAccount');
    $xajax->register(XAJAX_FUNCTION, 'quickMASSetCats');
    $xajax->register(XAJAX_FUNCTION, 'quickMASGetYandexKassaLink');
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:15,代码来源:quickmas.common.php

示例8: xajax

<?php

define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
global $xajax;
if (!$xajax) {
    $xajax = new xajax("/xajax/hh.server.php?rnd=" . mt_rand());
    $xajax->setFlag('decodeUTF8Input', true);
    //$xajax->setFlag('debug',true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'addHHSpecProf');
    $xajax->register(XAJAX_FUNCTION, 'delProf');
    $xajax->register(XAJAX_FUNCTION, 'delHHSpec');
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:14,代码来源:hh.common.php

示例9: argumentDecode

//
//$xajax = null;
//
//if (false == isset($_SESSION['xjxcore']))
//{
//	$xajax = new xajax();
//
//	$_SESSION['xjxcore'] = $xajax;
//}
//else
//{
//	$xajax = $_SESSION['xjxcore'];
//}
// -- end testing
$xajax = new xajax();
$xajax->register(XAJAX_FUNCTION, 'argumentDecode');
$xajax->register(XAJAX_FUNCTION, 'roundTrip');
$xajax->register(XAJAX_FUNCTION, 'compress');
$xajax->register(XAJAX_FUNCTION, 'compile');
$timer->setMarker('xajax constructed');
$trips = 500;
$timer->setMarker('begin process request');
$xajax->processRequest();
$xajax->configure('javascript URI', '../');
$timer->setMarker('after process request');
function argumentDecode($nTimes, $aArgs)
{
    global $timer;
    global $trips;
    $objResponse = new xajaxResponse();
    if ($nTimes < $trips) {
开发者ID:nbgmaster,项目名称:wiflash,代码行数:31,代码来源:performance.php

示例10: xajax

 * el funcionamiento de Xajax.
 */
require_once './controlador/include/xajax/xajax_core/xajax.inc.php';
/**
 * Recuperamos la informacion de la sesion.
 */
session_start();
/**
 * Creamos el objeto Xajax.
 */
$xajax = new xajax('./controlador/motorxajax.php');
/**
 * Registramos las funciones con el objeto xajax creado anteriormente que vamos 
 * a llamar desde JavaScript o directamente desde el codigo PHP.
 */
$xajax->register(XAJAX_FUNCTION, "azulon");
$xajax->register(XAJAX_FUNCTION, "azuloff");
$xajax->register(XAJAX_FUNCTION, "verdeon");
$xajax->register(XAJAX_FUNCTION, "verdeoff");
$xajax->register(XAJAX_FUNCTION, "rojoon");
$xajax->register(XAJAX_FUNCTION, "rojooff");
$xajax->register(XAJAX_FUNCTION, "amarilloon");
$xajax->register(XAJAX_FUNCTION, "amarillooff");
$xajax->register(XAJAX_FUNCTION, "controlazul");
$xajax->register(XAJAX_FUNCTION, "controlverde");
$xajax->register(XAJAX_FUNCTION, "controlrojo");
$xajax->register(XAJAX_FUNCTION, "controlamarillo");
/**
 * Indicamos la ruta del componenete Javascript de Xajax.
 */
$xajax->configure('javascript URI', './controlador/include/xajax/');
开发者ID:antoniohh,项目名称:antoniohh.github.io,代码行数:31,代码来源:index.php

示例11: xajax

<?php

$rpath = $rpath ? $rpath : "../";
define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/config.php";
$xajax = new xajax("/xajax/bill.server.php");
//$xajax->setFlag('debug',true);
$xajax->configure('decodeUTF8Input', true);
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->register(XAJAX_FUNCTION, "ShowBillComms");
$xajax->register(XAJAX_FUNCTION, "ShowBillText");
//$xajax->register(XAJAX_FUNCTION, "CheckUserType");
//$xajax->register(XAJAX_FUNCTION, "CheckUser");
//$xajax->register(XAJAX_FUNCTION, "changeCalendarMonth");
//$xajax->register(XAJAX_FUNCTION, "BlockOperation");
//$xajax->register(XAJAX_FUNCTION, "UnBlockOperation");
//$xajax->register(XAJAX_FUNCTION, "PreparePaymentOD");
//$xajax->register(XAJAX_FUNCTION, "addService");
//$xajax->register(XAJAX_FUNCTION, "updateOrder");
//$xajax->register(XAJAX_FUNCTION, "removeOrder");
//$xajax->register(XAJAX_FUNCTION, "clearOrdersServices");
//$xajax->register(XAJAX_FUNCTION, "updateAutoProlong");
//$xajax->register(XAJAX_FUNCTION, "preparePaymentServices");
//$xajax->register(XAJAX_FUNCTION, "cancelReservedOrders");
$xajax->register(XAJAX_FUNCTION, "ShowReserveOrders");
$xajax->register(XAJAX_FUNCTION, "ShowReserveText");
//$xajax->register(XAJAX_FUNCTION, "walletActivate");
//$xajax->register(XAJAX_FUNCTION, "updateProAuto");
//$xajax->register(XAJAX_FUNCTION, "walletRevoke");
$xajax->register(XAJAX_FUNCTION, "removeBillInvoice");
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:bill.common.php

示例12: xajaxResponse

    $result = '';
    // xajax response
    $JSResponse = new xajaxResponse();
    // read template information
    @(include DOC_DIR . '/templates/' . $template . '/info.php');
    // call plugin
    @(include DOC_DIR . '/templates/' . $engine['name'] . '/' . $engine['plugin'] . '.php');
    $JSResponse->assign('plugin', 'innerHTML', $result);
    return $JSResponse;
}
/* Using AJAX for template plugins */
require LIB_DIR . '/xajax/xajax_core/xajax.inc.php';
$xajax = new xajax();
$xajax->configure('errorHandler', true);
$xajax->configure('javascript URI', 'img');
$xajax->register(XAJAX_FUNCTION, 'plugin');
$xajax->processRequest();
$SMARTY->assign('xajax', $xajax->getJavascript());
/* end AJAX plugin stuff */
$layout['pagetitle'] = trans('Documents Generator');
if (isset($_POST['document'])) {
    $document = $_POST['document'];
    $oldfromdate = $document['fromdate'];
    $oldtodate = $document['todate'];
    if (!$document['type']) {
        $error['type'] = trans('Document type is required!');
    }
    if (!$document['title']) {
        $error['title'] = trans('Document title is required!');
    }
    if ($document['number'] == '') {
开发者ID:repcio,项目名称:lms,代码行数:31,代码来源:documentgen.php

示例13: xajax

<?php

$rpath = $rpath ? $rpath : '../';
define('XAJAX_DEFAULT_CHAR_ENCODING', 'windows-1251');
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/xajax_core/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/admin_log.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'getComments');
    $xajax->register(XAJAX_FUNCTION, 'setPrjBlockForm');
    $xajax->register(XAJAX_FUNCTION, 'updatePrjBlock');
    $xajax->register(XAJAX_FUNCTION, 'getUserWarns');
    $xajax->register(XAJAX_FUNCTION, 'setOfferBlockForm');
    $xajax->register(XAJAX_FUNCTION, 'updateOfferBlock');
    $xajax->register(XAJAX_FUNCTION, 'getLastIps');
    $xajax->register(XAJAX_FUNCTION, 'getLastEmails');
    $xajax->register(XAJAX_FUNCTION, 'updateMoneyBlock');
    $xajax->register(XAJAX_FUNCTION, 'nullRating');
    $xajax->register(XAJAX_FUNCTION, 'activateUser');
    $xajax->register(XAJAX_FUNCTION, 'updateSafetyPhone');
    $xajax->register(XAJAX_FUNCTION, 'updateSafetyIp');
    $xajax->register(XAJAX_FUNCTION, 'updateEmail');
    $xajax->register(XAJAX_FUNCTION, 'updatePop');
    $xajax->register(XAJAX_FUNCTION, 'stopNotifications');
    $xajax->register(XAJAX_FUNCTION, 'setVerification');
    $xajax->register(XAJAX_FUNCTION, 'saveExcDate');
    $xajax->register(XAJAX_FUNCTION, 'getLoadExcDate');
    $xajax->register(XAJAX_FUNCTION, 'setReasonBold');
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:admin_log.common.php

示例14: xajax

<?php

define("XAJAX_DEFAULT_CHAR_ENCODING", "windows-1251");
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php";
$xajax = new xajax("/xajax/tservices.server.php");
//$xajax->debugOn();
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->configure('decodeUTF8Input', true);
$xajax->register(XAJAX_FUNCTION, "more_feedbacks", array('callback' => 'xajax_callback_feedbacks'));
$xajax->register(XAJAX_FUNCTION, "tservices_order_auth", array());
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("setDelReasonForm", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("getAdminActionReasonTextDel", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("setDeleted", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("unBlocked", $_SERVER['DOCUMENT_ROOT'] . "/xajax/banned.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("AddInTeam", $_SERVER['DOCUMENT_ROOT'] . "/xajax/team.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("DelInTeam", $_SERVER['DOCUMENT_ROOT'] . "/xajax/team.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("checkCode", $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPaymentProcess", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quick_payment.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("getUserPhoto", $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("checkPromoCode", $_SERVER['DOCUMENT_ROOT'] . "/xajax/promo_codes.server.php"));
//Аякс обработчики попапа покупки ПРО
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPROPayAccount", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPROGetYandexKassaLink", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.server.php"));
$xajax->register(XAJAX_FUNCTION, new xajaxUserFunction("quickPROGetPlatipotomLink", $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.server.php"));
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:24,代码来源:tservices.common.php

示例15: testForm

    $objArgumentManager = xajaxArgumentManager::getInstance();
    $aArgs = $objArgumentManager->process();
    $objResponse = new xajaxResponse();
    $objResponse->alert("This is from the invalid request handler");
    return test2ndFunction($aArgs[0], $objResponse);
}
function testForm($formData)
{
    $objResponse = new xajaxResponse();
    $objResponse->alert("This is from the regular function");
    return test2ndFunction($formData, $objResponse);
}
$xajax = new xajax();
$xajax->configure('javascript URI', '../');
$xajax->configure("errorHandler", true);
$xajax->register(XAJAX_PROCESSING_EVENT, XAJAX_PROCESSING_EVENT_INVALID, "onInvalidRequest");
if (isset($_GET['registerFunction'])) {
    if (1 == $_GET['registerFunction']) {
        $xajax->register(XAJAX_FUNCTION, "testForm");
    }
}
$xajax->processRequest();
$xajax->configure('javascript URI', '../');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>onMissingFunction Event (used to be catch-all) Function Test | xajax Tests</title>
开发者ID:nbgmaster,项目名称:master2008,代码行数:30,代码来源:catchAllFunctionTest.php


注:本文中的xajax::register方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。