コード例 #1
0
 /**
  * Returns if data type finds any content in the attribute
  *
  * @param eZContentObjectAttribute $contentObjectAttribute
  *
  * @return bool
  */
 public function hasObjectAttributeContent($contentObjectAttribute)
 {
     $count = SckEnhancedSelection::countByAttribute($contentObjectAttribute->attribute('id'), $contentObjectAttribute->attribute('version'));
     return $count > 0;
 }