當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。