@@ -136,6 +136,9 @@ discard block |
||
136 | 136 | Ajde::app()->getDocument()->setLayout(new Ajde_Layout('empty')); |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $name |
|
141 | + */ |
|
139 | 142 | public function addHeader($name, $value) |
140 | 143 | { |
141 | 144 | $headers = []; |
@@ -146,6 +149,9 @@ discard block |
||
146 | 149 | $this->set("headers", $headers); |
147 | 150 | } |
148 | 151 | |
152 | + /** |
|
153 | + * @param string $name |
|
154 | + */ |
|
149 | 155 | public function removeHeader($name) |
150 | 156 | { |
151 | 157 | // TODO: also remove from $this->_data['headers'] |
@@ -125,6 +125,10 @@ |
||
125 | 125 | */ |
126 | 126 | // protected function _loadTranslationData($filename, $locale, array $options = array()) |
127 | 127 | // AJDE : We use this method directly, so it must be public |
128 | + |
|
129 | + /** |
|
130 | + * @param string $filename |
|
131 | + */ |
|
128 | 132 | public function _loadTranslationData($filename, $locale, array $options = []) |
129 | 133 | { |
130 | 134 | $this->_data = []; |
@@ -30,6 +30,9 @@ |
||
30 | 30 | $this->set("name", $name); |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $style |
|
35 | + */ |
|
33 | 36 | public function setStyle($style) |
34 | 37 | { |
35 | 38 | $this->set("style", $style); |
@@ -29,6 +29,9 @@ |
||
29 | 29 | return $getWriters; |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $level |
|
34 | + */ |
|
32 | 35 | private static function shouldLog($level) |
33 | 36 | { |
34 | 37 | $configLevel = current(explode(':', Config::get('logLevel'))); |
@@ -3168,7 +3168,7 @@ |
||
3168 | 3168 | * @param string $path A filename or path, does not need to exist as a file |
3169 | 3169 | * @param integer|string $options Either a PATHINFO_* constant, |
3170 | 3170 | * or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2 |
3171 | - * @return string|array |
|
3171 | + * @return string |
|
3172 | 3172 | * @static |
3173 | 3173 | */ |
3174 | 3174 | public static function mb_pathinfo($path, $options = null) |
@@ -186,8 +186,8 @@ |
||
186 | 186 | * |
187 | 187 | * @access public |
188 | 188 | * @param string $host |
189 | - * @param bool|int $port |
|
190 | - * @param bool|int $tval |
|
189 | + * @param boolean $port |
|
190 | + * @param boolean $tval |
|
191 | 191 | * @param string $username |
192 | 192 | * @param string $password |
193 | 193 | * @param int $debug_level |
@@ -842,7 +842,7 @@ discard block |
||
842 | 842 | * |
843 | 843 | * @param string $data The data to send |
844 | 844 | * @access public |
845 | - * @return int|bool The number of bytes sent to the server or FALSE on error |
|
845 | + * @return integer The number of bytes sent to the server or FALSE on error |
|
846 | 846 | */ |
847 | 847 | public function client_send($data) |
848 | 848 | { |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | * Get the latest error. |
858 | 858 | * |
859 | 859 | * @access public |
860 | - * @return array |
|
860 | + * @return string |
|
861 | 861 | */ |
862 | 862 | public function getError() |
863 | 863 | { |
@@ -153,6 +153,9 @@ discard block |
||
153 | 153 | } |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @return string |
|
158 | + */ |
|
156 | 159 | public function displayField() |
157 | 160 | { |
158 | 161 | $displayField = $this->getDisplayField(); |
@@ -176,7 +179,7 @@ discard block |
||
176 | 179 | } |
177 | 180 | |
178 | 181 | /** |
179 | - * @return Ajde_Db_Adapter_Abstract |
|
182 | + * @return Ajde_Db_PDO |
|
180 | 183 | */ |
181 | 184 | public function getConnection() |
182 | 185 | { |
@@ -224,6 +227,9 @@ discard block |
||
224 | 227 | return $this->loadByFields([$pk => $value]); |
225 | 228 | } |
226 | 229 | |
230 | + /** |
|
231 | + * @param string $field |
|
232 | + */ |
|
227 | 233 | public function loadByField($field, $value) |
228 | 234 | { |
229 | 235 | return $this->loadByFields([$field => $value]); |
@@ -429,7 +435,7 @@ discard block |
||
429 | 435 | |
430 | 436 | /** |
431 | 437 | * |
432 | - * @param array $fields |
|
438 | + * @param string[] $fields |
|
433 | 439 | */ |
434 | 440 | public function setEncryptedFields($fields) |
435 | 441 | { |
@@ -734,6 +740,9 @@ discard block |
||
734 | 740 | return new $parentModelName(); |
735 | 741 | } |
736 | 742 | |
743 | + /** |
|
744 | + * @param string $column |
|
745 | + */ |
|
737 | 746 | public function getParentTable($column) |
738 | 747 | { |
739 | 748 | $fk = $this->getTable()->getFK($column); |
@@ -864,6 +873,9 @@ discard block |
||
864 | 873 | |
865 | 874 | // TREE SORT FUNCTIONS |
866 | 875 | |
876 | + /** |
|
877 | + * @param string $collectionName |
|
878 | + */ |
|
867 | 879 | public function sortTree($collectionName, $parentField = 'parent', $levelField = 'level', $sortField = 'sort') |
868 | 880 | { |
869 | 881 | $collection = new $collectionName(); |
@@ -874,6 +886,11 @@ discard block |
||
874 | 886 | $this->_recurseChildren($collection, $collectionName, $parentField, $levelField, $sortField); |
875 | 887 | } |
876 | 888 | |
889 | + /** |
|
890 | + * @param string $parentField |
|
891 | + * @param string $levelField |
|
892 | + * @param string $sortField |
|
893 | + */ |
|
877 | 894 | private function _recurseChildren( |
878 | 895 | $collection, |
879 | 896 | $collectionName, |
@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | return $this->_model; |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param Ajde_Model $model |
|
39 | + */ |
|
37 | 40 | public function setModel($model) |
38 | 41 | { |
39 | 42 | $this->_model = $model; |
@@ -84,6 +87,9 @@ discard block |
||
84 | 87 | return $this->_value; |
85 | 88 | } |
86 | 89 | |
90 | + /** |
|
91 | + * @param string|null $value |
|
92 | + */ |
|
87 | 93 | public function validate($fieldOptions, $value) |
88 | 94 | { |
89 | 95 | $this->_value = $value; |