本文整理汇总了PHP中Permissions::canMoveOrCopyPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Permissions::canMoveOrCopyPage方法的具体用法?PHP Permissions::canMoveOrCopyPage怎么用?PHP Permissions::canMoveOrCopyPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Permissions
的用法示例。
在下文中一共展示了Permissions::canMoveOrCopyPage方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: t
?>
/edit_area_popup?cID=<?php
echo $stackToEdit->getCollectionID();
?>
&arHandle=<?php
echo STACKS_AREA_NAME;
?>
&atask=groups"><?php
echo t('Permissions');
?>
</a></li>
<?php
}
?>
<?php
if (!$isGlobalArea && $cpc->canMoveOrCopyPage()) {
?>
<li><a href="<?php
echo $view->action('duplicate', $neutralStack->getCollectionID());
?>
" style="margin-right: 4px;"><?php
echo t('Duplicate Stack');
?>
</a></li>
<?php
}
?>
<li>
<a dialog-width="640" dialog-height="340" class="dialog-launch" id="stackUsage" dialog-title="<?php
echo t('Stack Usage');
?>
示例2: explode
$canAddSubContent = true;
$canMoveCopyTo = true;
$canCopyChildren = true;
$canMoveCopyPages = true;
if (isset($_REQUEST['origCID']) && strpos($_REQUEST['origCID'], ',') > -1) {
$ocs = explode(',', $_REQUEST['origCID']);
foreach ($ocs as $ocID) {
$originalPages[] = Page::getByID($ocID);
}
}
foreach ($originalPages as $oc) {
$ocp = new Permissions($oc);
if (!$ocp->canRead()) {
$canReadSource = false;
}
if (!$ocp->canMoveOrCopyPage()) {
$canMoveCopyPages = false;
}
$ct = PageType::getByID($oc->getPageTypeID());
if (!$dcp->canAddSubpage($ct)) {
$canAddSubContent = false;
}
if (!$oc->canMoveCopyTo($dc)) {
$canMoveCopyTo = false;
}
if (!$u->isSuperUser() || $oc->getCollectionPointerID() > 0) {
$canCopyChildren = false;
}
}
if (is_object($dc) && !$dc->isError() && $dc->isAlias()) {
$canMoveCopyTo = false;
示例3: t
<a class="btn ccm-button-v2-right small ccm-main-nav-edit-option error" href="javascript:void(0)" onclick="if (confirm('<?php
echo t('Are you sure you want to remove this stack?');
?>
')) { window.location.href='<?php
echo $this->url('/dashboard/blocks/stacks/', 'delete', $stack->getCollectionID(), Loader::helper('validation/token')->generate('delete'));
?>
' }"><?php
echo t('Delete Stack');
?>
</a>
<?php
}
?>
<?php
if ($cpc->canMoveOrCopyPage()) {
?>
<a class="btn ccm-button-v2-right small ccm-main-nav-edit-option" href="<?php
echo $this->action('duplicate', $stack->getCollectionID());
?>
" style="margin-right: 4px;"><?php
echo t('Duplicate Stack');
?>
</a>
<?php
}
?>
<?php
$hasPendingPageApproval = false;
$workflowList = PageWorkflowProgress::getList($stack);
示例4: t
" id="stackPermissions" href="<?php
echo REL_DIR_FILES_TOOLS_REQUIRED;
?>
/edit_area_popup?cID=<?php
echo $stack->getCollectionID();
?>
&arHandle=<?php
echo STACKS_AREA_NAME;
?>
&atask=groups"><?php
echo t('Permissions');
?>
</a></li>
<? } ?>
<? if ($cpc->canMoveOrCopyPage() && $stack->getStackType() != \Concrete\Core\Page\Stack\Stack::ST_TYPE_GLOBAL_AREA) { ?>
<li><a href="<?php
echo $view->action('duplicate', $stack->getCollectionID());
?>
" style="margin-right: 4px;"><?php
echo t('Duplicate Stack');
?>
</a></li>
<? } ?>
<? if ($cpc->canDeletePage()) { ?>
<? if ($stack->getStackType() == \Concrete\Core\Page\Stack\Stack::ST_TYPE_GLOBAL_AREA) { ?>
<li><a href="javascript:void(0)" data-dialog="delete-stack"><span class="text-danger"><?php
echo t('Clear Global Area');
?>
</span></a></li>
<? } else { ?>
示例5:
break;
case 'set_advanced_permissions':
$toolSection = "permission/details/collection";
$canViewPane = $cp->canEditPagePermissions();
break;
case 'preview_page_as_user':
$toolSection = "collection_preview_as_user";
$canViewPane = $cp->canPreviewPageAsUser() && PERMISSIONS_MODEL == 'advanced';
break;
case 'view_timed_permission_list':
$toolSection = "collection_timed_permission_list";
$canViewPane = $cp->canPreviewPageAsUser() && PERMISSIONS_MODEL == 'advanced';
break;
case 'mcd':
$toolSection = "collection_mcd";
$canViewPane = $cp->canMoveOrCopyPage();
$divID = "ccm-collection-mcd";
break;
case 'delete':
$toolSection = "collection_delete";
$canViewPane = $cp->canDeletePage();
break;
case 'set_theme':
$toolSection = "collection_theme";
$divID = 'ccm-edit-collection-design';
$canViewPane = $cp->canEditPageTheme() || $cp->canEditPageType();
break;
case 'add':
$toolSection = "collection_add";
$divID = 'ccm-edit-collection-design';
$canViewPane = $cp->canAddSubpage();
示例6: t
?>
" id="menuVersions<?php
echo $cID;
?>
" href="<?php
echo REL_DIR_FILES_TOOLS_REQUIRED;
?>
/versions.php?cID=<?php
echo $cID;
?>
"><?php
echo t('Versions');
?>
</a></li>';
<? } ?>
<? if ($cp->canMoveOrCopyPage()) { ?>
menuHTML += '<li><a class="ccm-menu-icon ccm-icon-move-copy" id="ccm-toolbar-nav-move-copy" dialog-width="90%" dialog-height="70%" dialog-modal="false" dialog-title="<?php
echo t('Move/Copy Page');
?>
" href="<?php
echo REL_DIR_FILES_TOOLS_REQUIRED;
?>
/sitemap_search_selector?sitemap_select_mode=move_copy_delete&cID=<?php
echo $cID;
?>
"><?php
echo t('Move/Copy');
?>
</a></li>';
<? } ?>
<? if ($cp->canEditPageSpeedSettings()) { ?>
示例7: update_order
public function update_order()
{
$ret = array('success' => false, 'message' => t("Error"));
if ($this->isPost() && is_array($stIDs = $this->post('stID'))) {
$parent = Page::getByPath(STACKS_PAGE_PATH);
$cpc = new Permissions($parent);
if ($cpc->canMoveOrCopyPage()) {
foreach ($stIDs as $displayOrder => $cID) {
$c = Page::getByID($cID);
$c->updateDisplayOrder($displayOrder, $cID);
}
$ret['success'] = true;
$ret['message'] = t("Stack order updated successfully.");
}
}
echo Loader::helper('json')->encode($ret);
exit;
}