本文整理汇总了PHP中AZLib::refreshParent方法的典型用法代码示例。如果您正苦于以下问题:PHP AZLib::refreshParent方法的具体用法?PHP AZLib::refreshParent怎么用?PHP AZLib::refreshParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AZLib
的用法示例。
在下文中一共展示了AZLib::refreshParent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: on_submit
function on_submit()
{
$og_name = Url::get('og_name');
$u_name = Url::get('u_name');
$u_yahoo = Url::get('u_yahoo');
$u_skype = Url::get('u_skype');
$OnlineSupport = array();
if ($og_name) {
foreach ($og_name as $gid => $g_name) {
if ($g_name != '' && isset($u_name[$gid], $u_yahoo[$gid], $u_skype[$gid])) {
$garray = array('name' => $g_name, 'users' => array());
foreach ($u_name[$gid] as $uid => $name) {
if ($name != '' && isset($u_yahoo[$gid][$uid], $u_skype[$gid][$uid]) && ($u_yahoo[$gid][$uid] != '' || $u_skype[$gid][$uid] != '')) {
$garray['users'][$uid] = array('name' => $name, 'yahoo' => $u_yahoo[$gid][$uid], 'skype' => $u_skype[$gid][$uid]);
}
}
if ($garray['users']) {
$OnlineSupport[$gid] = $garray;
}
}
}
}
if (isset(CGlobal::$configs['OnlineSupport'])) {
DB::update('configs', array("conf_val" => addslashes(serialize($OnlineSupport))), "conf_key='OnlineSupport'", __FILE__ . " Dòng:" . __LINE__);
} else {
DB::insert('configs', array("conf_key" => 'OnlineSupport', "conf_val" => addslashes(serialize($OnlineSupport))), __FILE__ . " Dòng:" . __LINE__);
}
AZLib::get_config(0, 1);
AZLib::refreshParent();
}
示例2: on_submit
function on_submit()
{
$footerContent = Url::get('content');
if (get_magic_quotes_gpc()) {
$footerContent = stripslashes($footerContent);
}
require_once ROOT_PATH . 'includes/htmLawed.php';
$config = array('safe' => 1, 'elements' => '*', 'deny_attribute' => 'class, id');
$spec = 'a = title, href;';
// The 'a' element can have only these attributes
$footerContent = htmLawed($footerContent, $config, $spec);
$footerContent = AZLib::clean_value($footerContent);
$this->checkFormInput('Nội dung', 'content', $footerContent, 'str', true);
if (!$this->errNum) {
if (isset(CGlobal::$configs['footer_content'])) {
DB::update('configs', array("conf_val" => $footerContent), "conf_key='footer_content'");
} else {
DB::insert('configs', array("conf_key" => 'footer_content', "conf_val" => $footerContent));
}
AZLib::get_config(0, 1);
AZLib::refreshParent();
}
}