1 | <?php |
||
10 | class PhraseanetExtension extends \Twig_Extension |
||
11 | { |
||
12 | /** |
||
13 | * @var InstanceHelperRegistry |
||
14 | */ |
||
15 | private $helpers; |
||
16 | |||
17 | public function __construct(InstanceHelperRegistry $helpers) |
||
21 | |||
22 | public function getFunctions() |
||
33 | |||
34 | public function fetchThumbnail($record, $thumbType = 'medium', $instanceName = null) |
||
40 | |||
41 | public function fetchThumbnailUrl($record, $thumbType = 'media', $instanceName = null) |
||
51 | |||
52 | public function getRecordHash(Record $record, $instanceName = null) |
||
56 | |||
57 | /** |
||
58 | * @param Record $record |
||
59 | * @param $field |
||
60 | * @param null $locale |
||
61 | * @param null $instanceName |
||
62 | * @return null|string |
||
63 | */ |
||
64 | public function getRecordCaption(Record $record, $field, $locale = null, $instanceName = null) |
||
70 | |||
71 | /** |
||
72 | * @param Story $story |
||
73 | * @param $field |
||
74 | * @param null $locale |
||
75 | * @param null $instanceName |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getStoryCaption(Story $story, $field, $locale = null, $instanceName = null) |
||
84 | |||
85 | /** |
||
86 | * @param Record $record |
||
87 | * @param $field |
||
88 | * @param null $locale |
||
89 | * @param null $instanceName |
||
90 | * @return array |
||
91 | */ |
||
92 | public function getRecordMultiCaption(Record $record, $field, $locale = null, $instanceName = null) |
||
98 | |||
99 | public function entryContainsPdfDocuments(FeedEntry $feedEntry, $name = null) |
||
105 | |||
106 | public function getName() |
||
110 | } |
||
111 |