1 | <?php |
||
34 | class TtnewsElement extends RecordElement { |
||
35 | |||
36 | /** |
||
37 | * Overwritten method to initialized |
||
38 | * (non-PHPdoc) |
||
39 | * @see classes/tx_languagevisibility_element#initialisations() |
||
40 | */ |
||
41 | protected function initialisations() { |
||
43 | |||
44 | /** |
||
45 | * returns which field in the language should be used to read the default visibility |
||
46 | * |
||
47 | * @param void |
||
48 | * @return string (blank=default / page=page) |
||
49 | **/ |
||
50 | function getFieldToUseForDefaultVisibility() { |
||
53 | |||
54 | /** |
||
55 | * Returns a formal description for this element type. |
||
56 | * |
||
57 | * (non-PHPdoc) |
||
58 | * @see classes/tx_languagevisibility_recordelement#getElementDescription() |
||
59 | */ |
||
60 | public function getElementDescription() { |
||
63 | |||
64 | /** |
||
65 | * Returns the fallback order for news elements. |
||
66 | * |
||
67 | * @param Language $language |
||
68 | * |
||
69 | * @return array |
||
70 | * |
||
71 | * (non-PHPdoc) |
||
72 | * @see classes/tx_languagevisibility_recordelement#getFallbackOrder($language) |
||
73 | */ |
||
74 | public function getFallbackOrder(Language $language) { |
||
77 | } |
||
78 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.