1 | <?php |
||
17 | class FieldRelationship extends Field |
||
18 | { |
||
19 | /** |
||
20 | * |
||
21 | * Separator char for values |
||
22 | * @var string |
||
23 | */ |
||
24 | const SEPARATOR = ','; |
||
25 | |||
26 | protected $orderable = false; |
||
27 | |||
28 | /** |
||
29 | * @param string $name |
||
30 | */ |
||
31 | public function getInt($name) |
||
35 | |||
36 | /** |
||
37 | * Check if a given property is == 'yes' |
||
38 | * @param string $name |
||
39 | * @return bool |
||
40 | * True if the current field's value is 'yes' |
||
41 | */ |
||
42 | public function is($name) |
||
46 | |||
47 | public function getArray($name) |
||
51 | |||
52 | /** |
||
53 | * @return bool |
||
54 | * True if the current field is required |
||
55 | */ |
||
56 | public function isRequired() |
||
60 | |||
61 | public static function getEntries(array $data) |
||
65 | |||
66 | /** |
||
67 | * @param string $fieldName |
||
68 | * @param string $text |
||
69 | */ |
||
70 | protected function createCheckbox($fieldName, $text) { |
||
81 | |||
82 | /** |
||
83 | * @param string $prefix |
||
84 | * @param string $name |
||
85 | * @param @optional bool $multiple |
||
86 | */ |
||
87 | protected function createFieldName($prefix, $name, $multiple = false) |
||
95 | |||
96 | /** |
||
97 | * @param string $name |
||
98 | */ |
||
99 | protected function createSettingsFieldName($name, $multiple = false) |
||
103 | |||
104 | /** |
||
105 | * @param string $name |
||
106 | */ |
||
107 | protected function createPublishFieldName($name, $multiple = false) |
||
111 | |||
112 | protected function getSelectedSectionsArray() |
||
125 | |||
126 | protected function createEntriesList($entries) |
||
151 | |||
152 | /** |
||
153 | * @param integer $count |
||
154 | */ |
||
155 | final static protected function formatCount($count) |
||
164 | } |
||
165 |