1 | <?php |
||
36 | class ContentObjectService |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * @var ContentObjectRenderer |
||
41 | */ |
||
42 | protected $contentObjectRenderer; |
||
43 | |||
44 | /** |
||
45 | * StdWrapService constructor. |
||
46 | * @param ContentObjectRenderer|null $contentObject |
||
47 | */ |
||
48 | 199 | public function __construct(ContentObjectRenderer $contentObject = null) |
|
52 | |||
53 | /** |
||
54 | * This method use $content and $conf and passes it directly to stdWrap. |
||
55 | * |
||
56 | * @param string $content |
||
57 | * @param array $conf |
||
58 | * @return string |
||
59 | */ |
||
60 | 3 | public function renderSingleContentObject($content = '', $conf = []) |
|
64 | |||
65 | /** |
||
66 | * Very object stdWrap is used with 'field' as $content and 'field.' as $conf with this |
||
67 | * method you can pass the array and the $key that is used to access $conant and $conf from $array. |
||
68 | * |
||
69 | * @param array $array |
||
70 | * @param string $key |
||
71 | * @return string |
||
72 | */ |
||
73 | 1 | public function renderSingleContentObjectByArrayAndKey($array = [], $key = '') |
|
79 | } |
||
80 |