本文整理汇总了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 );
}
示例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);
}
示例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;
}