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


PHP eZPersistentObject::newObjectOrder方法代码示例

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


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

示例1: create

 static function create( $contentClassAttributeID, $contentClassAttributeVersion, $element )
 {
     $row = array( "id" => null,
                   "contentclass_attribute_id" => $contentClassAttributeID,
                   "contentclass_attribute_version" => $contentClassAttributeVersion,
                   "enumvalue" => "",
                   "enumelement" => $element,
                   "placement" => eZPersistentObject::newObjectOrder( eZEnumValue::definition(),
                                                                      "placement",
                                                                      array( "contentclass_attribute_id" => $contentClassAttributeID,
                                                                             "contentclass_attribute_version" => $contentClassAttributeVersion ) ) );
     return new eZEnumValue( $row );
 }
开发者ID:nottavi,项目名称:ezpublish,代码行数:13,代码来源:ezenumvalue.php

示例2: create

 /**
  * Creates a new workflow event
  *
  * @param int $workflowID
  * @param string $typeString
  *
  * @return eZWorkflowEvent
  */
 static function create($workflowID, $typeString)
 {
     $row = array("id" => null, "version" => 1, "workflow_id" => $workflowID, "workflow_type_string" => $typeString, "description" => "", "placement" => eZPersistentObject::newObjectOrder(eZWorkflowEvent::definition(), "placement", array("version" => 1, "workflow_id" => $workflowID)));
     return new eZWorkflowEvent($row);
 }
开发者ID:netbliss,项目名称:ezpublish,代码行数:13,代码来源:ezworkflowevent.php

示例3: create

    static function create( $class_id, $data_type_string, $optionalValues = array(), $languageLocale = false )
    {
        $nameList = new eZSerializedObjectNameList();
        if ( isset( $optionalValues['serialized_name_list'] ) )
            $nameList->initFromSerializedList( $optionalValues['serialized_name_list'] );
        else if ( isset( $optionalValues['name'] ) )
            $nameList->initFromString( $optionalValues['name'], $languageLocale );
        else
            $nameList->initFromString( '', $languageLocale );

        $descriptionList = new eZSerializedObjectNameList();
        if ( isset( $optionalValues['serialized_description_list'] ) )
            $descriptionList->initFromSerializedList( $optionalValues['serialized_description_list'] );
        else if ( isset( $optionalValues['description'] ) )
            $descriptionList->initFromString( $optionalValues['description'], $languageLocale );
        else
            $descriptionList->initFromString( '', $languageLocale );

        if ( isset( $optionalValues['data_text_i18n'] ) )
        {
            $dataTextI18nList = new eZSerializedObjectNameList( $optionalValues['data_text_i18n'] );
            $optionalValues['serialized_data_text'] = $dataTextI18nList->serializeNames();
        }

        $row = array(
            'id' => null,
            'version' => eZContentClass::VERSION_STATUS_TEMPORARY,
            'contentclass_id' => $class_id,
            'identifier' => '',
            'serialized_name_list' => $nameList->serializeNames(),
            'serialized_description_list' => $descriptionList->serializeNames(),
            'is_searchable' => 1,
            'is_required' => 0,
            'can_translate' => 1,
            'is_information_collector' => 0,
            'data_type_string' => $data_type_string,
            'placement' => eZPersistentObject::newObjectOrder( eZContentClassAttribute::definition(),
                                                               'placement',
                                                               array( 'version' => 1,
                                                                      'contentclass_id' => $class_id ) ) );
        $row = array_merge( $row, $optionalValues );
        $attribute = new eZContentClassAttribute( $row );

        return $attribute;
    }
开发者ID:nottavi,项目名称:ezpublish,代码行数:45,代码来源:ezcontentclassattribute.php


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