本文整理匯總了PHP中Tsugi\Core\LTIX::settingsSend方法的典型用法代碼示例。如果您正苦於以下問題:PHP LTIX::settingsSend方法的具體用法?PHP LTIX::settingsSend怎麽用?PHP LTIX::settingsSend使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tsugi\Core\LTIX
的用法示例。
在下文中一共展示了LTIX::settingsSend方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: linkSetAll
/**
* Set all of the the link-level settings.
*
* @param $keyvals An array of key/value pairs that is serialized
* in JSON and stored. If this is an empty array, this effectively
* empties out all the settings.
*/
public static function linkSetAll($keyvals)
{
global $CFG, $PDOX, $LINK;
global $settingsDebugArray;
$settingsDebugArray = array();
$json = json_encode($keyvals);
$q = $PDOX->queryDie("UPDATE {$CFG->dbprefix}lti_link \n SET settings = :SET WHERE link_id = :LID", array(":SET" => $json, ":LID" => $LINK->id));
$settingsDebugArray[] = array(count($keyvals) . " settings updated link_id=" . $LINK->id);
if (isset($_SESSION['lti'])) {
$_SESSION['lti']['link_settings'] = $json;
unset($_SESSION['lti']['link_settings_merge']);
}
$settings_url = LTIX::sessionGet('link_settings_url', false);
if ($settings_url === false) {
return;
}
$settingsDebugArray[] = array("Sending settings to " . $settings_url);
$retval = LTIX::settingsSend($keyvals, $settings_url, $settingsDebugArray);
}