本文整理匯總了PHP中Sites::calcPName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Sites::calcPName方法的具體用法?PHP Sites::calcPName怎麽用?PHP Sites::calcPName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Sites
的用法示例。
在下文中一共展示了Sites::calcPName方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: sGuiUS
$siteMgr->setDefaultTemplate($objectID, $defaulttemplate);
$siteMgr->setTemplateRoot($objectID, $templateroot);
$jsQueue->add($objectID, HISTORYTYPE_SITE, 'OBJECT_CHANGE', sGuiUS(), 'site', NULL, NULL, $objectID . '-site', 'name', $name);
$jsQueue->add($objectID, HISTORYTYPE_SITE, 'OBJECT_CHANGE', sGuiUS(), 'page', NULL, NULL, $objectID . '-site', 'name', $name);
$jsQueue->add($objectID, HISTORYTYPE_SITE, 'OBJECT_CHANGE', sGuiUS(), 'site', NULL, NULL, $objectID . '-site', 'pname', $pname);
// Re-sort the list
$koala->queueScript('if (Koala.windows[Koala.windows[\'' . $wid . '\'].boundWindow].sortList) Koala.windows[Koala.windows[\'' . $wid . '\'].boundWindow].sortList();');
$jsQueue->add($objectID, HISTORYTYPE_SITE, 'REFRESH_WINDOW', sGuiUS(), 'name');
// Fade all green fields
$koala->queueScript("Koala.yg_fadeFields(\$('" . $wid . "'), 'input.changed');");
$jsQueue->add($objectID, HISTORYTYPE_SITE, 'UNHIGHLIGHT_SITE', sGuiUS(), 'name');
}
break;
case 'siteSelectNode':
$node = $this->params['node'];
$wid = $this->params['wid'];
$koala->callJSFunction('Koala.yg_enable', 'tree_btn_delete', 'btn-' . $wid, 'tree_btn');
break;
case 'siteCalcPname':
// Get window-ID
$winID = $data[1]['winID'];
// Split ObjectID and SiteID
$siteId = explode('-', $this->reponsedata['name']->yg_id);
$siteId = $siteId[0];
$siteInfo = $siteMgr->get($siteId);
if (strlen(trim($siteInfo['PNAME'])) == 0) {
$PName = $siteMgr->calcPName($siteId, '', $this->reponsedata['name']->value);
$koala->queueScript('$(\'' . $winID . '_site_pname\').value=\'' . $PName . '\';Koala.yg_setEdited( $(\'' . $winID . '_site_pname\') );');
}
break;
}