当前位置: 首页>>代码示例>>PHP>>正文


PHP Permissions::canMoveOrCopyPage方法代码示例

本文整理汇总了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');
        ?>
开发者ID:seebaermichi,项目名称:concrete5,代码行数:31,代码来源:view.php

示例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;
开发者ID:ceko,项目名称:concrete5-1,代码行数:31,代码来源:sitemap_drag_request.php

示例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);
开发者ID:Mihail9575,项目名称:concrete5,代码行数:31,代码来源:view.php

示例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 { ?>
开发者ID:JeRoNZ,项目名称:concrete5-1,代码行数:31,代码来源:view.php

示例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();
开发者ID:Zyqsempai,项目名称:amanet,代码行数:31,代码来源:edit_collection_popup.php

示例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()) { ?>
开发者ID:ronlobo,项目名称:concrete5,代码行数:31,代码来源:page_controls_menu_js.php

示例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;
 }
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:18,代码来源:stacks.php


注:本文中的Permissions::canMoveOrCopyPage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。