@@ -111,6 +111,9 @@ |
||
| 111 | 111 | return $label; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | + /** |
|
| 115 | + * @param string $label |
|
| 116 | + */ |
|
| 114 | 117 | protected function createPopupHint($label, $popupHint) |
| 115 | 118 | {
|
| 116 | 119 | return CHtml::tag('span',
|
@@ -158,6 +158,9 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | + /** |
|
| 162 | + * @param string $engine |
|
| 163 | + */ |
|
| 161 | 164 | protected function checkEngine($engine) |
| 162 | 165 | {
|
| 163 | 166 | $q = $this->pdo->query('SHOW ENGINES;');
|
@@ -224,7 +227,7 @@ discard block |
||
| 224 | 227 | * @param PDO $connection Соединение с базой данных. |
| 225 | 228 | * |
| 226 | 229 | * @throws BadMethodCallException |
| 227 | - * @return array Результат команды SHOW GRANTS; |
|
| 230 | + * @return string[] Результат команды SHOW GRANTS; |
|
| 228 | 231 | */ |
| 229 | 232 | public static function getShowGrantsOutput(PDO $connection) |
| 230 | 233 | {
|
@@ -322,6 +325,9 @@ discard block |
||
| 322 | 325 | return reset($candidates); |
| 323 | 326 | } |
| 324 | 327 | |
| 328 | + /** |
|
| 329 | + * @param string $string |
|
| 330 | + */ |
|
| 325 | 331 | private function parsePrivileges($string) |
| 326 | 332 | {
|
| 327 | 333 | if( !preg_match('/GRANT\s+(?<privileges>.+)\s+ON/i', $string, $matches) )
|
@@ -104,6 +104,9 @@ |
||
| 104 | 104 | return file_exists($modulePath) && is_dir($modulePath); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $module |
|
| 109 | + */ |
|
| 107 | 110 | protected function clearDb($module) |
| 108 | 111 | {
|
| 109 | 112 | Yii::import('backend.modules.'.$module.'.models.*');
|
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | /** |
| 356 | - * @return CActiveRecord |
|
| 356 | + * @return string |
|
| 357 | 357 | */ |
| 358 | 358 | protected function getModelName() |
| 359 | 359 | {
|
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | |
| 377 | 377 | /** |
| 378 | 378 | * @param CDbCriteria $criteria |
| 379 | - * @param $attribute |
|
| 379 | + * @param string $attribute |
|
| 380 | 380 | * |
| 381 | 381 | * @return array |
| 382 | 382 | */ |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @param bool $restore |
| 52 | 52 | * |
| 53 | 53 | * @throws CHttpException |
| 54 | - * @return bool |
|
| 54 | + * @return boolean|null |
|
| 55 | 55 | */ |
| 56 | 56 | public function add($data, $restore = false) |
| 57 | 57 | {
|
@@ -113,6 +113,9 @@ discard block |
||
| 113 | 113 | return $amount; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + /** |
|
| 117 | + * @param integer $amount |
|
| 118 | + */ |
|
| 116 | 119 | public function changeAmount($index, $amount = null) |
| 117 | 120 | {
|
| 118 | 121 | if( $amount !== null ) |
@@ -152,7 +155,7 @@ discard block |
||
| 152 | 155 | * @param array|FCollectionElement|CActiveRecord $type |
| 153 | 156 | * @param null $id |
| 154 | 157 | * |
| 155 | - * @return bool |
|
| 158 | + * @return integer|null |
|
| 156 | 159 | */ |
| 157 | 160 | public function getIndex($type, $id = null) |
| 158 | 161 | {
|
@@ -36,6 +36,9 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | private $compareByItemKeys; |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param FAbstractCollection $rootCollection |
|
| 41 | + */ |
|
| 39 | 42 | public function __construct($data, $compareByItemKeys = array(), $rootCollection = null) |
| 40 | 43 | {
|
| 41 | 44 | $this->type = $data['type']; |
@@ -258,8 +261,8 @@ discard block |
||
| 258 | 261 | } |
| 259 | 262 | |
| 260 | 263 | /** |
| 261 | - * @param $collectionItems1 |
|
| 262 | - * @param $collectionItems2 |
|
| 264 | + * @param FCollection $collectionItems1 |
|
| 265 | + * @param FCollection $collectionItems2 |
|
| 263 | 266 | * @param array $compareByItemKeys |
| 264 | 267 | * |
| 265 | 268 | * @return bool |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @param string|array $elements - id элемента или масив id |
|
| 70 | + * @param string $elements - id элемента или масив id |
|
| 71 | 71 | * |
| 72 | 72 | * @return $this |
| 73 | 73 | */ |
@@ -263,8 +263,8 @@ discard block |
||
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | /** |
| 266 | - * @param string|array $text |
|
| 267 | - * @param $inCollection |
|
| 266 | + * @param string $text |
|
| 267 | + * @param boolean $inCollection |
|
| 268 | 268 | * @param $htmlOptions |
| 269 | 269 | * |
| 270 | 270 | * @return array|mixed |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | class FActiveDataProvider extends CActiveDataProvider |
| 10 | 10 | {
|
| 11 | 11 | /** |
| 12 | - * @param mixed $modelClass |
|
| 12 | + * @param string $modelClass |
|
| 13 | 13 | * @param array $config |
| 14 | 14 | */ |
| 15 | 15 | public function __construct($modelClass, $config = array()) |
@@ -58,6 +58,9 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | protected $status = false; |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param FForm $parent |
|
| 63 | + */ |
|
| 61 | 64 | public function __construct($config, $model = null, $parent = null) |
| 62 | 65 | {
|
| 63 | 66 | if( is_string($config) ) |
@@ -465,6 +468,9 @@ discard block |
||
| 465 | 468 | return false; |
| 466 | 469 | } |
| 467 | 470 | |
| 471 | + /** |
|
| 472 | + * @param string $email |
|
| 473 | + */ |
|
| 468 | 474 | public function sendNotification($email, $vars = array()) |
| 469 | 475 | {
|
| 470 | 476 | Yii::app()->notification->send($this->model, $vars, $email); |