@@ -59,6 +59,10 @@ |
||
59 | 59 | * @param string moduleName The name of the module to which this subpanel belongs |
60 | 60 | * @param string packageName If not empty, the name of the package to which this subpanel belongs |
61 | 61 | */ |
62 | + |
|
63 | + /** |
|
64 | + * @param string $moduleName |
|
65 | + */ |
|
62 | 66 | function __construct ($subpanelName , $moduleName , $packageName = '') |
63 | 67 | { |
64 | 68 | $GLOBALS [ 'log' ]->debug ( get_class ( $this ) . ": __construct()" ) ; |
@@ -58,6 +58,9 @@ discard block |
||
58 | 58 | * @throws Exception Thrown if the provided view doesn't exist for this module |
59 | 59 | */ |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $packageName |
|
63 | + */ |
|
61 | 64 | function __construct ($view , $moduleName , $packageName) |
62 | 65 | { |
63 | 66 | |
@@ -169,6 +172,11 @@ discard block |
||
169 | 172 | * @param string modulename The name of the module that will use this layout |
170 | 173 | * @param string type |
171 | 174 | */ |
175 | + |
|
176 | + /** |
|
177 | + * @param string $view |
|
178 | + * @param string $type |
|
179 | + */ |
|
172 | 180 | public static function getFileName ($view , $moduleName , $packageName , $type = MB_BASEMETADATALOCATION) |
173 | 181 | { |
174 | 182 | |
@@ -207,6 +215,9 @@ discard block |
||
207 | 215 | |
208 | 216 | } |
209 | 217 | |
218 | + /** |
|
219 | + * @return string |
|
220 | + */ |
|
210 | 221 | public function getModuleDir(){ |
211 | 222 | return $this->module->key_name; |
212 | 223 | } |
@@ -61,6 +61,10 @@ |
||
61 | 61 | * @param string moduleName The name of the module to which this subpanel belongs |
62 | 62 | * @param string packageName If not empty, the name of the package to which this subpanel belongs |
63 | 63 | */ |
64 | + |
|
65 | + /** |
|
66 | + * @param string $packageName |
|
67 | + */ |
|
64 | 68 | function __construct ($subpanelName , $moduleName , $packageName) |
65 | 69 | { |
66 | 70 | $this->_subpanelName = $subpanelName ; |
@@ -177,6 +177,9 @@ |
||
177 | 177 | return $ajax ; |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param AbstractMetaDataParser|null $parser |
|
182 | + */ |
|
180 | 183 | function constructSmarty ($parser) |
181 | 184 | { |
182 | 185 | global $mod_strings; |
@@ -364,8 +364,7 @@ |
||
364 | 364 | * This function overrides fetchTemplate from SugarView. For view.modulefield.php we go through the FieldViewer |
365 | 365 | * class to fetch the display contents. |
366 | 366 | * |
367 | - * @param FieldViewer $mixed the FieldViewer instance |
|
368 | - * @param string $template the file to fetch |
|
367 | + * @param FieldViewer $fv |
|
369 | 368 | * @return string contents from calling the fetch method on the FieldViewer Sugar_Smarty instance |
370 | 369 | */ |
371 | 370 | protected function fetchTemplate($fv/*, $template*/) |
@@ -156,8 +156,7 @@ |
||
156 | 156 | * fetchTemplate |
157 | 157 | * This function overrides fetchTemplate from SugarView. |
158 | 158 | * |
159 | - * @param FieldViewer $mixed the Sugar_Smarty instance |
|
160 | - * @param string $template the file to fetch |
|
159 | + * @param Sugar_Smarty $smarty |
|
161 | 160 | * @return string contents from calling the fetch method on the Sugar_Smarty instance |
162 | 161 | */ |
163 | 162 | protected function fetchTemplate($smarty/*, $template*/) |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Removes all custom fields created in studio |
134 | 134 | * |
135 | - * @return html output record of the field deleted |
|
135 | + * @return string output record of the field deleted |
|
136 | 136 | */ |
137 | 137 | function removeCustomFields() |
138 | 138 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | /** |
166 | 166 | * Removes the metadata files for all known studio layouts. |
167 | 167 | * |
168 | - * @return html output record of the files deleted |
|
168 | + * @return string output record of the files deleted |
|
169 | 169 | */ |
170 | 170 | function removeCustomLayouts() |
171 | 171 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Removes all custom relationships containing this module |
194 | 194 | * |
195 | - * @return html output record of the files deleted |
|
195 | + * @return string output record of the files deleted |
|
196 | 196 | */ |
197 | 197 | function removeCustomRelationships() |
198 | 198 | { |
@@ -100,6 +100,9 @@ discard block |
||
100 | 100 | echo $this->ajax->getJavascript () ; |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @param AjaxCompose $ajax |
|
105 | + */ |
|
103 | 106 | function processStudio( |
104 | 107 | $ajax |
105 | 108 | ) |
@@ -185,6 +188,9 @@ discard block |
||
185 | 188 | } |
186 | 189 | } |
187 | 190 | |
191 | + /** |
|
192 | + * @param AjaxCompose $ajax |
|
193 | + */ |
|
188 | 194 | function processMB ( |
189 | 195 | $ajax |
190 | 196 | ) |
@@ -145,6 +145,9 @@ |
||
145 | 145 | return true; |
146 | 146 | } |
147 | 147 | |
148 | +/** |
|
149 | + * @param boolean $boolean |
|
150 | + */ |
|
148 | 151 | function set_users_can_edit($boolean){ |
149 | 152 | global $current_user; |
150 | 153 | if(is_admin($current_user)){ |