本文整理汇总了PHP中eZDataType::objectDisplayInformation方法的典型用法代码示例。如果您正苦于以下问题:PHP eZDataType::objectDisplayInformation方法的具体用法?PHP eZDataType::objectDisplayInformation怎么用?PHP eZDataType::objectDisplayInformation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZDataType
的用法示例。
在下文中一共展示了eZDataType::objectDisplayInformation方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: objectDisplayInformation
/**
* Sets grouped_input to true for edit view of the datatype
*
* @param eZContentObjectAttribute $objectAttribute
* @param array|bool $mergeInfo
*
* @return array
*/
public function objectDisplayInformation($objectAttribute, $mergeInfo = false)
{
return eZDataType::objectDisplayInformation($objectAttribute, array('edit' => array('grouped_input' => true)));
}
示例2: objectDisplayInformation
function objectDisplayInformation($objectAttribute, $mergeInfo = false)
{
$classAttribute = $objectAttribute->contentClassAttribute();
$content = $this->classAttributeContent($classAttribute);
$editGrouped = ($content['selection_type'] == 0 or $content['selection_type'] == 1 and $content['fuzzy_match']);
$info = array('edit' => array('grouped_input' => $editGrouped), 'collection' => array('grouped_input' => $editGrouped));
return eZDataType::objectDisplayInformation($objectAttribute, $info);
}
示例3: objectDisplayInformation
function objectDisplayInformation($objectAttribute, $mergeInfo = false)
{
$classAttribute = $objectAttribute->contentClassAttribute();
$isOption = $classAttribute->attribute('data_int2');
$editGrouped = $isOption == false;
$info = array('edit' => array('grouped_input' => $editGrouped), 'collection' => array('grouped_input' => $editGrouped));
return eZDataType::objectDisplayInformation($objectAttribute, $info);
}
示例4: objectDisplayInformation
function objectDisplayInformation($contentObjectAttribute, $mergeInfo = false)
{
$classAttribute = $contentObjectAttribute->contentClassAttribute();
$content = eZObjectRelationBrowseType::classAttributeContent($classAttribute);
$editGrouped = ($content['selection_type'] == 0 or $content['selection_type'] == 1);
$info = array('edit' => array('grouped_input' => $editGrouped), 'collection' => array('grouped_input' => $editGrouped));
return eZDataType::objectDisplayInformation($contentObjectAttribute, $info);
}