예제 #1
0
파일: eztagstype.php 프로젝트: oki34/eztags
 /**
  * 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)));
 }
 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
0
파일: ezenumtype.php 프로젝트: legende91/ez
 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);
 }
 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);
 }