@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Init query |
23 | - * @param $query |
|
23 | + * @param \samson\activerecord\dbQuery $query |
|
24 | 24 | */ |
25 | 25 | public function __construct($query) |
26 | 26 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Get data from passed material |
32 | - * @param $fieldName |
|
32 | + * @param string $fieldName |
|
33 | 33 | * @param $material |
34 | 34 | * @return null |
35 | 35 | * @throws \Exception |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param $schema |
109 | 109 | * @param $fieldName |
110 | 110 | * @param $material |
111 | - * @return null |
|
111 | + * @return string|null |
|
112 | 112 | */ |
113 | 113 | public function findField($schema, $fieldName, $material) |
114 | 114 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | /** |
140 | 140 | * Get material by url |
141 | - * @param $url |
|
141 | + * @param string $url |
|
142 | 142 | * @return mixed |
143 | 143 | */ |
144 | 144 | public function getMaterialByUrl($url) |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | /** |
189 | 189 | * Get all views which not assign to any material |
190 | - * @param $renderer |
|
190 | + * @param Core $renderer |
|
191 | 191 | * @return String |
192 | 192 | */ |
193 | 193 | public function getCommonViews($renderer) |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * @param $params |
116 | - * @param $xml |
|
116 | + * @param Xml $xml |
|
117 | 117 | * @return int |
118 | 118 | * @throws \Exception |
119 | 119 | */ |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | /** |
150 | 150 | * @param $params |
151 | - * @param $xml |
|
151 | + * @param Xml $xml |
|
152 | 152 | * @return int |
153 | 153 | * @throws \Exception |
154 | 154 | */ |
@@ -276,6 +276,9 @@ discard block |
||
276 | 276 | } |
277 | 277 | } |
278 | 278 | |
279 | + /** |
|
280 | + * @param ControlSchema $controlSchema |
|
281 | + */ |
|
279 | 282 | public function getRelatedStructuresInMaterial($controlSchema, $mainMaterial) |
280 | 283 | { |
281 | 284 |
@@ -18,6 +18,9 @@ |
||
18 | 18 | /** @var string Path to main view */ |
19 | 19 | public $indexView = 'info/index'; |
20 | 20 | |
21 | + /** |
|
22 | + * @param \samsoncms\seo\Core $renderer |
|
23 | + */ |
|
21 | 24 | public function __construct($renderer, $data = null) |
22 | 25 | { |
23 | 26 | // Save renderer |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Render default tab with fields |
87 | - * @param $renderer |
|
88 | - * @param $query |
|
89 | - * @param $entity |
|
90 | - * @param $schema |
|
87 | + * @param RenderInterface $renderer |
|
88 | + * @param QueryInterface $query |
|
89 | + * @param Record $entity |
|
90 | + * @param MaterialSchema $schema |
|
91 | 91 | */ |
92 | 92 | public function renderDefaultStructure($renderer, $query, $entity, $schema) |
93 | 93 | { |
@@ -105,6 +105,10 @@ discard block |
||
105 | 105 | |
106 | 106 | /** |
107 | 107 | * Render control schemas |
108 | + * @param RenderInterface $renderer |
|
109 | + * @param QueryInterface $query |
|
110 | + * @param Record $entity |
|
111 | + * @param ControlSchema $schema |
|
108 | 112 | */ |
109 | 113 | public function renderControlStructure($renderer, $query, $entity, $schema) |
110 | 114 | { |
@@ -170,6 +174,9 @@ discard block |
||
170 | 174 | return $this->renderer->view($this->contentView)->content($content)->output(); |
171 | 175 | } |
172 | 176 | |
177 | + /** |
|
178 | + * @param string $name |
|
179 | + */ |
|
173 | 180 | public function setName($name) |
174 | 181 | { |
175 | 182 | $this->name = $name; |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | |
29 | 29 | const MAIN_PREFIX_NAME = 'main'; |
30 | 30 | |
31 | + /** |
|
32 | + * @param \samson\activerecord\dbQuery $query |
|
33 | + */ |
|
31 | 34 | public function __construct($query) |
32 | 35 | { |
33 | 36 | $this->query = $query; |
@@ -99,7 +102,7 @@ discard block |
||
99 | 102 | |
100 | 103 | /** |
101 | 104 | * Assign structure to passed material |
102 | - * @param $material |
|
105 | + * @param \samson\activerecord\Material $material |
|
103 | 106 | * @param $structure |
104 | 107 | * @return mixed|structurematerial |
105 | 108 | */ |
@@ -203,7 +206,7 @@ discard block |
||
203 | 206 | |
204 | 207 | /** |
205 | 208 | * Create field |
206 | - * @param $name |
|
209 | + * @param string $name |
|
207 | 210 | * @param $description |
208 | 211 | * @param $type |
209 | 212 | * @param $value |
@@ -272,8 +275,8 @@ discard block |
||
272 | 275 | |
273 | 276 | /** |
274 | 277 | * Get structure if exists |
275 | - * @param $name |
|
276 | - * @param $url |
|
278 | + * @param string $name |
|
279 | + * @param string $url |
|
277 | 280 | * @return mixed |
278 | 281 | */ |
279 | 282 | public function isStructureExists($name, $url) |
@@ -286,7 +289,7 @@ discard block |
||
286 | 289 | |
287 | 290 | /** |
288 | 291 | * Get field if exists |
289 | - * @param $name |
|
292 | + * @param string $name |
|
290 | 293 | * @return mixed |
291 | 294 | */ |
292 | 295 | public function isFieldExists($name) |
@@ -312,7 +315,7 @@ discard block |
||
312 | 315 | |
313 | 316 | /** |
314 | 317 | * Assign nested material to the structure |
315 | - * @param $material |
|
318 | + * @param \samson\activerecord\Material $material |
|
316 | 319 | * @param $structure |
317 | 320 | */ |
318 | 321 | public function assignNestedMaterial($material, $structure) |
@@ -331,8 +334,8 @@ discard block |
||
331 | 334 | |
332 | 335 | /** |
333 | 336 | * Create nested material of structure |
334 | - * @param $name |
|
335 | - * @param $url |
|
337 | + * @param string $name |
|
338 | + * @param string $url |
|
336 | 339 | * @return \samson\activerecord\material |
337 | 340 | */ |
338 | 341 | public function createNestedMaterial($name, $url) |
@@ -349,7 +352,7 @@ discard block |
||
349 | 352 | /** |
350 | 353 | * Create nested material on the structure if it don't exists and assign it to the passed structure |
351 | 354 | * @param $structure |
352 | - * @return null|\samson\activerecord\material |
|
355 | + * @return \samson\activerecord\Material |
|
353 | 356 | */ |
354 | 357 | public function buildNestedMaterial($structure) |
355 | 358 | { |