@@ -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; |
@@ -116,6 +116,7 @@ |
||
116 | 116 | /** |
117 | 117 | * Render only nested elements |
118 | 118 | * @param $elements |
119 | + * @param boolean $field |
|
119 | 120 | * @return String |
120 | 121 | */ |
121 | 122 | public function renderNestedElements($elements, $field = null) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * Assign structure to passed material |
105 | - * @param $material |
|
105 | + * @param null|\samson\activerecord\Material $material |
|
106 | 106 | * @param $structure |
107 | 107 | * @return mixed|structurematerial |
108 | 108 | */ |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | /** |
208 | 208 | * Create field |
209 | - * @param $name |
|
209 | + * @param string $name |
|
210 | 210 | * @param $description |
211 | 211 | * @param $type |
212 | 212 | * @param $value |
@@ -278,8 +278,8 @@ discard block |
||
278 | 278 | |
279 | 279 | /** |
280 | 280 | * Get structure if exists |
281 | - * @param $name |
|
282 | - * @param $url |
|
281 | + * @param string $name |
|
282 | + * @param string $url |
|
283 | 283 | * @return mixed |
284 | 284 | */ |
285 | 285 | public function isStructureExists($name, $url) |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | |
293 | 293 | /** |
294 | 294 | * Get field if exists |
295 | - * @param $name |
|
295 | + * @param string $name |
|
296 | 296 | * @return mixed |
297 | 297 | */ |
298 | 298 | public function isFieldExists($name) |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | |
319 | 319 | /** |
320 | 320 | * Assign nested material to the structure |
321 | - * @param $material |
|
321 | + * @param \samson\activerecord\Material $material |
|
322 | 322 | * @param $structure |
323 | 323 | */ |
324 | 324 | public function assignNestedMaterial($material, $structure) |
@@ -337,8 +337,8 @@ discard block |
||
337 | 337 | |
338 | 338 | /** |
339 | 339 | * Create nested material of structure |
340 | - * @param $name |
|
341 | - * @param $url |
|
340 | + * @param string $name |
|
341 | + * @param string $url |
|
342 | 342 | * @return \samson\activerecord\material |
343 | 343 | */ |
344 | 344 | public function createNestedMaterial($name, $url) |