當前位置: 首頁>>代碼示例>>PHP>>正文


PHP xajaxResponse::call方法代碼示例

本文整理匯總了PHP中xajaxResponse::call方法的典型用法代碼示例。如果您正苦於以下問題:PHP xajaxResponse::call方法的具體用法?PHP xajaxResponse::call怎麽用?PHP xajaxResponse::call使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在xajaxResponse的用法示例。


在下文中一共展示了xajaxResponse::call方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setAutoComplete

function setAutoComplete($block, $check = false)
{
    $objResponse = new xajaxResponse();
    if (!(hasPermissions('adm') && hasPermissions('mailer'))) {
        return $objResponse;
    }
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/Digest/DigestFactory.php';
    if (!in_array($block, DigestFactory::$types)) {
        return $objResponse;
    }
    $digestBlock = new $block();
    $digestBlock->setCheck($check);
    if (!$digestBlock->isAutoComplete()) {
        return $objResponse;
    }
    $auto = $digestBlock->setFieldAutoComplete();
    if ($auto) {
        ob_start();
        $digestBlock->displayBlock();
        $html = ob_get_clean();
        $objResponse->assign($block . $digestBlock->getNum(), 'innerHTML', $html);
        $objResponse->call('setInitPosition');
        $objResponse->call('initNaviButton', $block . $digestBlock->getNum());
        $objResponse->call('initCheckSelect', $block . $digestBlock->getNum());
    } else {
        $objResponse->call('alert', 'Нет данных для автозаполнения');
        return $objResponse;
    }
    return $objResponse;
}
開發者ID:kapai69,項目名稱:fl-ru-damp,代碼行數:30,代碼來源:mailer.server.php

示例2: select_customer

function select_customer($id)
{
    $JSResponse = new xajaxResponse();
    $nodes_location = LMSDB::getInstance()->GetAll('SELECT n.id, n.name, location FROM vnodes n WHERE ownerid = ? ORDER BY n.name ASC', array($id));
    $JSResponse->call('update_nodes_location', (array) $nodes_location);
    return $JSResponse;
}
開發者ID:pjona,項目名稱:lms,代碼行數:7,代碼來源:eventedit.php

示例3: do_reload_shift

function do_reload_shift()
{
    $objResponse = new xajaxResponse();
    reload_shift();
    $objResponse->call('xajax_load_nav');
    $objResponse->call('xajax_load_footer');
    switch ($_SESSION['curPage']) {
        case '1':
            $objResponse->call('xajax_load_residents()');
            break;
        case '2':
            $objResponse->call('xajax_load_guests()');
            break;
    }
    return $objResponse;
}
開發者ID:pkkann,項目名稱:enrollment_sys,代碼行數:16,代碼來源:shift.php

示例4: getMessageTemplates

function getMessageTemplates($tmpltype)
{
    global $LMS;
    $result = new xajaxResponse();
    $templates = $LMS->GetMessageTemplates($tmpltype);
    $result->call('messageTemplatesReceived', $templates);
    return $result;
}
開發者ID:Akheon23,項目名稱:lms,代碼行數:8,代碼來源:messageadd.php

示例5: roundTrip

function roundTrip($nTimes)
{
    global $timer;
    global $trips;
    $objResponse = new xajaxResponse();
    if ($nTimes < $trips) {
        $nTimes += 1;
        $objResponse->script('xajax_roundTrip(' . $nTimes . ');');
        $objResponse->assign('submittedDiv', 'innerHTML', 'Working...');
    } else {
        $objResponse->assign('submittedDiv', 'innerHTML', 'Done');
    }
    $timer->stop();
    $objResponse->call('accumulateTime', $timer->timeElapsed());
    $objResponse->call('printTime');
    return $objResponse;
}
開發者ID:nbgmaster,項目名稱:wiflash,代碼行數:17,代碼來源:performance.php

示例6: load_shifts

function load_shifts()
{
    $objResponse = new xajaxResponse();
    $text .= gen_shifts();
    $objResponse->call('xajax_load_nav', "4");
    $objResponse->assign("middle_wrapper", "innerHTML", $text);
    return $objResponse;
}
開發者ID:pkkann,項目名稱:enrollment_sys,代碼行數:8,代碼來源:shifts.php

示例7: getMessageTemplate

function getMessageTemplate($tmplid)
{
    global $DB;
    $result = new xajaxResponse();
    $message = $DB->GetOne('SELECT message FROM templates WHERE id = ?', array($tmplid));
    $result->call('messageTemplateReceived', $message);
    return $result;
}
開發者ID:prezeskk,項目名稱:lms,代碼行數:8,代碼來源:customerwarn.php

示例8: delNodeLock

function delNodeLock($nodeid, $id) {
	global $DB;

	$result = new xajaxResponse();
	$DB->Execute('DELETE FROM nodelocks WHERE id = ?', array($id));
	$result->call('xajax_getNodeLocks', $nodeid);
	$result->assign('nodelocktable', 'disabled', false);

	return $result;
}
開發者ID:rzt,項目名稱:lms,代碼行數:10,代碼來源:nodexajax.inc.php

示例9: select_producer

function select_producer($id)
{
    $JSResponse = new xajaxResponse();
    $models = LMSDB::getInstance()->GetAll('
        SELECT id, name
        FROM netdevicemodels 
        WHERE netdeviceproducerid = ?
        ORDER BY name', array($id));
    $JSResponse->call('update_models', (array) $models);
    return $JSResponse;
}
開發者ID:kornelek,項目名稱:lms,代碼行數:11,代碼來源:choosenetdevmodel.php

示例10: delProf

/**
 * @see hh::delProf()
 */
function delProf($hh_field, $prof_id, $hh_spec_id) {
    require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php");
    $objResponse = new xajaxResponse();
    $hh = new hh();
    $hh_field   = intval($hh_field);
    $hh_spec_id = intval($hh_spec_id);
    $prof_id    = intval($prof_id);
    $hh->delProf($hh_field, $prof_id, $hh_spec_id);
    $objResponse->call("delProf", NULL, $hh_field, $prof_id, $hh_spec_id);
    return $objResponse;
}
開發者ID:notUserDeveloper,項目名稱:fl-ru-damp,代碼行數:14,代碼來源:hh.server.php

示例11: callFunction

function callFunction()
{
    $value = 'no value provided';
    if (0 < func_num_args()) {
        $args = func_get_args();
        $value = $args[0];
    }
    $objResponse = new xajaxResponse();
    $objResponse->call('this.myFunction', null, 0, -10.5, 'abc', true, false, $value);
    return $objResponse;
}
開發者ID:silvia-valdez,項目名稱:SignalsViewer,代碼行數:11,代碼來源:scriptContext.php

示例12: connect_nodes

function connect_nodes($nodeids, $deviceid, $linktype, $linktechnology, $linkspeed)
{
    global $DB;
    $JSResponse = new xajaxResponse();
    $DB->BeginTrans();
    foreach ($nodeids as $nodeid) {
        $DB->Execute("UPDATE nodes SET netdev = ?, port = 0, linktype = ?, linktechnology = ?, linkspeed = ? WHERE id = ?", array($deviceid, $linktype, $linktechnology, $linkspeed, $nodeid));
    }
    $DB->CommitTrans();
    $JSResponse->call('operation_finished');
    return $JSResponse;
}
開發者ID:kornelek,項目名稱:lms,代碼行數:12,代碼來源:nodesearch.php

示例13: getUsersForGroup

function getUsersForGroup($groupid)
{
    $JSResponse = new xajaxResponse();
    if (empty($groupid)) {
        $users = null;
    } else {
        $users = LMSDB::getInstance()->GetCol('SELECT u.id FROM users u
			JOIN userassignments ua ON ua.userid = u.id
			WHERE u.deleted = 0 AND u.access = 1 AND ua.usergroupid = ?', array($groupid));
    }
    $JSResponse->call('update_user_selection', $users);
    return $JSResponse;
}
開發者ID:prezeskk,項目名稱:lms,代碼行數:13,代碼來源:eventadd.php

示例14: FPEP_getTab

/**
 * Получить станицу с выбором работ для таба.
 * 
 * @param bool $params
 *
 * @return \xajaxResponse
 */
function FPEP_getTab($params)
{
    $objResponse = new xajaxResponse();
    $uid = get_uid(false);
    if ($uid > 0 && !is_emp() && is_pro()) {
        $query = http_build_query($params);
        $params['is_ajax'] = true;
        require_once ABS_PATH . '/freelancers/widgets/FreelancersPreviewEditorPopup.php';
        $freelancersPreviewEditorPopup = new FreelancersPreviewEditorPopup($params);
        $html = $freelancersPreviewEditorPopup->render();
        $objResponse->call("window.popups_factory.getPopup('freelancersPreviewEditorPopup').showTabContent", $freelancersPreviewEditorPopup->getCurrentTab(), $html, $query);
    }
    return $objResponse;
}
開發者ID:kapai69,項目名稱:fl-ru-damp,代碼行數:21,代碼來源:freelancers_preview_editor_popup.server.php

示例15: save_field

function save_field($name, $value)
{
    global $user, $userlib;
    if (!$user) {
        return false;
    }
    $objResponse = new xajaxResponse();
    $result = $userlib->set_user_field($name, $value);
    if (!$result) {
        $objResponse->alert("nao foi possivel editar o campo {$name}");
    } else {
        $objResponse->call('exibeCampo', $name, $value);
    }
    return $objResponse;
}
開發者ID:rodrigoprimo,項目名稱:estudiolivre,代碼行數:15,代碼來源:el-user_ajax.php


注:本文中的xajaxResponse::call方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。