cdm-dataportal/modules/cdm_dataportal/classes/ItemComposeHandler.php @ 97fada02
1 |
<?php
|
---|---|
2 |
|
3 |
|
4 |
abstract class ItemComposeHandler { |
5 |
|
6 |
abstract public function getClassAttributes($item); |
7 |
|
8 |
abstract public function composeItem($item); |
9 |
|
10 |
/**
|
11 |
* @param $cdm_entity
|
12 |
* A CDM native entity. In case of DTOs the cdm entity can be substituted by
|
13 |
* TypedEntityReference
|
14 |
*
|
15 |
* @return string
|
16 |
*/
|
17 |
protected function classAttributes($cdm_entity) { |
18 |
return html_class_attribute_ref($cdm_entity); |
19 |
}
|
20 |
}
|