@@ -52,6 +52,9 @@ |
||
52 | 52 | return 'Packages'; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param Tree $parent |
|
57 | + */ |
|
55 | 58 | function populateTree($nodes, &$parent){ |
56 | 59 | foreach($nodes as $node){ |
57 | 60 | if(empty($node['label']))$node['label'] = $node['name']; |
@@ -84,6 +84,9 @@ discard block |
||
84 | 84 | return $this->packages [ $name ] ; |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $name |
|
89 | + */ |
|
87 | 90 | function getPackageKey ($name) |
88 | 91 | { |
89 | 92 | $manifestPath = MB_PACKAGE_PATH . '/' . $name . '/manifest.php' ; |
@@ -156,7 +159,7 @@ discard block |
||
156 | 159 | * Function return module name and this aliases |
157 | 160 | * |
158 | 161 | * @param string $module |
159 | - * @return array $aliases |
|
162 | + * @return string[] $aliases |
|
160 | 163 | */ |
161 | 164 | static public function getModuleAliases($module) |
162 | 165 | { |
@@ -64,6 +64,9 @@ discard block |
||
64 | 64 | { |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param string $file |
|
69 | + */ |
|
67 | 70 | function _loadFromFile($view,$file,$moduleName) |
68 | 71 | { |
69 | 72 | |
@@ -114,6 +117,10 @@ discard block |
||
114 | 117 | /* |
115 | 118 | * Save the new layout |
116 | 119 | */ |
120 | + |
|
121 | + /** |
|
122 | + * @param string $view |
|
123 | + */ |
|
117 | 124 | function _writeToFile ($file,$view,$moduleName,$defs,$variables) |
118 | 125 | { |
119 | 126 | if(file_exists($file)) |
@@ -134,6 +134,7 @@ |
||
134 | 134 | * @param $dropdown array The dropdown currently being saved |
135 | 135 | * @param $selected_lang String the language currently selected in Studio/MB |
136 | 136 | * @param $saveLov String the path to the directory to save the new lang file in. |
137 | + * @param string $saveLoc |
|
137 | 138 | */ |
138 | 139 | function synchDropDown($dropdown_name, $dropdown, $selected_lang, $saveLoc) { |
139 | 140 | $allLanguages = get_languages(); |
@@ -179,6 +179,9 @@ |
||
179 | 179 | |
180 | 180 | } |
181 | 181 | |
182 | + /** |
|
183 | + * @param string $view |
|
184 | + */ |
|
182 | 185 | function loadModule ($module, $view) |
183 | 186 | { |
184 | 187 | $this->_viewdefs = array(); |
@@ -153,6 +153,10 @@ |
||
153 | 153 | return false; |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @param string $view |
|
158 | + * @param string $moduleName |
|
159 | + */ |
|
156 | 160 | protected static function checkForStudioParserOverride($view, $moduleName, $packageName) |
157 | 161 | { |
158 | 162 | require_once('modules/ModuleBuilder/Module/StudioModuleFactory.php'); |
@@ -249,6 +249,9 @@ discard block |
||
249 | 249 | return $labelDefinitions ; |
250 | 250 | } |
251 | 251 | |
252 | + /** |
|
253 | + * @return string |
|
254 | + */ |
|
252 | 255 | function getLeftModuleSystemLabel() |
253 | 256 | { |
254 | 257 | if($this->lhs_module == $this->rhs_module){ |
@@ -257,6 +260,9 @@ discard block |
||
257 | 260 | return $this->lhs_module; |
258 | 261 | } |
259 | 262 | |
263 | + /** |
|
264 | + * @return string |
|
265 | + */ |
|
260 | 266 | function getRightModuleSystemLabel() |
261 | 267 | { |
262 | 268 | if($this->lhs_module == $this->rhs_module){ |
@@ -631,6 +637,9 @@ discard block |
||
631 | 637 | } |
632 | 638 | |
633 | 639 | |
640 | + /** |
|
641 | + * @return string |
|
642 | + */ |
|
634 | 643 | function getJoinKeyLHS() |
635 | 644 | { |
636 | 645 | if (!isset($this->joinKeyLHS)) |
@@ -280,6 +280,10 @@ |
||
280 | 280 | * @param AbstractRelationship The relationship object |
281 | 281 | * @return string A globally unique relationship name |
282 | 282 | */ |
283 | + |
|
284 | + /** |
|
285 | + * @param AbstractRelationship $relationship |
|
286 | + */ |
|
283 | 287 | protected function getUniqueName ($relationship) |
284 | 288 | { |
285 | 289 | $allRelationships = $this->getRelationshipList () ; |
@@ -219,6 +219,9 @@ discard block |
||
219 | 219 | * Shortcut to construct an Activities collection subpanel |
220 | 220 | * @param AbstractRelationship $relationship Source relationship to Activities module |
221 | 221 | */ |
222 | + /** |
|
223 | + * @param string $relationshipName |
|
224 | + */ |
|
222 | 225 | protected function buildActivitiesSubpanelDefinition ( $relationshipName ) |
223 | 226 | { |
224 | 227 | return array ( |
@@ -253,6 +256,10 @@ discard block |
||
253 | 256 | * Shortcut to construct a History collection subpanel |
254 | 257 | * @param AbstractRelationship $relationship Source relationship to Activities module |
255 | 258 | */ |
259 | + |
|
260 | + /** |
|
261 | + * @param string $relationshipName |
|
262 | + */ |
|
256 | 263 | protected function buildHistorySubpanelDefinition ( $relationshipName ) |
257 | 264 | { |
258 | 265 | return array ( |