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


PHP eZContentObjectStateGroup::limitations方法代码示例

本文整理汇总了PHP中eZContentObjectStateGroup::limitations方法的典型用法代码示例。如果您正苦于以下问题:PHP eZContentObjectStateGroup::limitations方法的具体用法?PHP eZContentObjectStateGroup::limitations怎么用?PHP eZContentObjectStateGroup::limitations使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在eZContentObjectStateGroup的用法示例。


在下文中一共展示了eZContentObjectStateGroup::limitations方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

/**
 * @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
 * @version  2013.11
 * @package kernel
 */
$Module = array('name' => 'eZContentObjectState', 'variable_params' => false);
$ViewList = array();
$ViewList['assign'] = array('default_navigation_part' => 'ezsetupnavigationpart', 'script' => 'assign.php', 'params' => array('ObjectID', 'SelectedStateID'), 'functions' => array('assign'), 'single_post_actions' => array('AssignButton' => 'Assign'), 'post_action_parameters' => array('Assign' => array('ObjectID' => 'ObjectID', 'SelectedStateIDList' => 'SelectedStateIDList', 'RedirectRelativeURI' => 'RedirectRelativeURI')));
$ViewList['groups'] = array('default_navigation_part' => 'ezsetupnavigationpart', 'script' => 'groups.php', 'params' => array(), 'functions' => array('administrate'), 'unordered_params' => array('offset' => 'Offset'), 'single_post_actions' => array('CreateButton' => 'Create', 'RemoveButton' => 'Remove'), 'post_action_parameters' => array('Remove' => array('RemoveIDList' => 'RemoveIDList')));
$ViewList['group'] = array('default_navigation_part' => 'ezsetupnavigationpart', 'script' => 'group.php', 'params' => array('GroupIdentifier', 'Language'), 'functions' => array('administrate'), 'single_post_actions' => array('CreateButton' => 'Create', 'UpdateOrderButton' => 'UpdateOrder', 'EditButton' => 'Edit', 'RemoveButton' => 'Remove'), 'post_action_parameters' => array('UpdateOrder' => array('Order' => 'Order'), 'Remove' => array('RemoveIDList' => 'RemoveIDList')));
$ViewList['group_edit'] = array('default_navigation_part' => 'ezsetupnavigationpart', 'script' => 'group_edit.php', 'ui_context' => 'edit', 'params' => array('GroupIdentifier'), 'functions' => array('administrate'), 'single_post_actions' => array('StoreButton' => 'Store', 'CancelButton' => 'Cancel'));
$ViewList['view'] = array('default_navigation_part' => 'ezsetupnavigationpart', 'script' => 'view.php', 'params' => array('GroupIdentifier', 'StateIdentifier', 'Language'), 'functions' => array('administrate'), 'single_post_actions' => array('EditButton' => 'Edit'));
$ViewList['edit'] = array('default_navigation_part' => 'ezsetupnavigationpart', 'script' => 'edit.php', 'ui_context' => 'edit', 'params' => array('GroupIdentifier', 'StateIdentifier'), 'functions' => array('administrate'), 'single_post_actions' => array('StoreButton' => 'Store', 'CancelButton' => 'Cancel'));
$ClassID = array('name' => 'Class', 'values' => array(), 'class' => 'eZContentClass', 'function' => 'fetchList', 'parameter' => array(0, false, false, array('name' => 'asc')));
$SectionID = array('name' => 'Section', 'values' => array(), 'class' => 'eZSection', 'function' => 'fetchList', 'parameter' => array(false));
$Assigned = array('name' => 'Owner', 'values' => array(array('Name' => 'Self', 'value' => '1')));
$AssignedGroup = array('name' => 'Group', 'single_select' => true, 'values' => array(array('Name' => 'Self', 'value' => '1')));
$Node = array('name' => 'Node', 'values' => array());
$Subtree = array('name' => 'Subtree', 'values' => array());
$stateLimitations = eZContentObjectStateGroup::limitations();
$NewState = array('name' => 'NewState', 'values' => array(), 'class' => 'eZContentObjectState', 'function' => 'limitationList', 'parameter' => array());
$FunctionList = array();
$FunctionList['administrate'] = array();
$FunctionList['assign'] = array('Class' => $ClassID, 'Section' => $SectionID, 'Owner' => $Assigned, 'Group' => $AssignedGroup, 'Node' => $Node, 'Subtree' => $Subtree);
$FunctionList['assign'] = array_merge($FunctionList['assign'], $stateLimitations, array('NewState' => $NewState));
开发者ID:jordanmanning,项目名称:ezpublish,代码行数:28,代码来源:module.php


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