本文整理汇总了PHP中Sites::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP Sites::remove方法的具体用法?PHP Sites::remove怎么用?PHP Sites::remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sites
的用法示例。
在下文中一共展示了Sites::remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PageMgr
switch ($action) {
case 'addSite':
$wid = $this->params['wid'];
$newSiteId = $siteMgr->add($itext['TXT_NEW_OBJECT'] ? $itext['TXT_NEW_OBJECT'] : '$TXT_NEW_OBJECT');
// Set permissions for newly created site (but only for roles with "RSITES" privilege)
$pageMgr = new PageMgr($newSiteId);
$roles = sUsergroups()->getList();
$pagesList = $pageMgr->getList(0, array(), 1, $roleID);
$koala->callJSFunction('Koala.yg_addSiteItem', $wid, $newSiteId, $itext['TXT_NEW_OBJECT'] ? $itext['TXT_NEW_OBJECT'] : '$TXT_NEW_OBJECT');
break;
case 'deleteSite':
$wid = $this->params['wid'];
$siteID = $this->params['siteID'];
$winID = explode('_', $wid);
$winID = $winID[1];
$siteMgr->remove($siteID);
$koala->queueScript('if ($(\'sites_' . $winID . '_' . $siteID . '\')) $(\'sites_' . $winID . '_' . $siteID . '\').remove();');
$koala->queueScript('Koala.windows[\'wid_' . $winID . '\'].refresh();');
$koala->queueScript('$(Koala.windows[\'wid_' . $winID . '\'].boundWindow).addClassName(\'boxghost\');');
$koala->queueScript('Koala.windows[Koala.windows[\'wid_' . $winID . '\'].boundWindow].init();');
$koala->callJSFunction('Koala.yg_disable', 'tree_btn_delete', 'btn-' . $winID, 'tree_btn');
break;
case 'setSiteTemplateRoot':
$siteID = $this->params['siteID'];
$template = $this->params['templateId'];
$parentwindow = $this->params['openerRefID'];
// Check if we really got sane values
if ($template != 'template') {
$templatePreview = '';
$templateInfo = $templateMgr->getTemplate($template);
$koala->callJSFunction('Koala.windows[\'wid_' . $parentwindow . '\'].refreshSiteTemplateRoot', $template, $templateInfo['NAME']);