@@ -36,7 +36,7 @@ discard block  | 
                                                    ||
| 36 | 36 | |
| 37 | 37 | /**  | 
                                                        
| 38 | 38 | * Аунтефикациия пользователя на сайте  | 
                                                        
| 39 | - * @return int  | 
                                                        |
| 39 | + * @return boolean  | 
                                                        |
| 40 | 40 | */  | 
                                                        
| 41 | 41 | public function authenticate()  | 
                                                        
| 42 | 42 |    {
 | 
                                                        
@@ -53,7 +53,7 @@ discard block  | 
                                                    ||
| 53 | 53 | }  | 
                                                        
| 54 | 54 | |
| 55 | 55 | /**  | 
                                                        
| 56 | - * @return int  | 
                                                        |
| 56 | + * @return boolean  | 
                                                        |
| 57 | 57 | */  | 
                                                        
| 58 | 58 | private function auth()  | 
                                                        
| 59 | 59 |    {
 | 
                                                        
@@ -68,7 +68,7 @@  | 
                                                    ||
| 68 | 68 | /**  | 
                                                        
| 69 | 69 | * @param BActiveRecord $copyModel  | 
                                                        
| 70 | 70 | * @param BActiveRecord $originModel  | 
                                                        
| 71 | - * @param $relationName  | 
                                                        |
| 71 | + * @param string $relationName  | 
                                                        |
| 72 | 72 | * @return bool  | 
                                                        
| 73 | 73 | */  | 
                                                        
| 74 | 74 | protected function copyRelations(BActiveRecord $copyModel, BActiveRecord $originModel, $relationName)  | 
                                                        
@@ -87,7 +87,7 @@ discard block  | 
                                                    ||
| 87 | 87 | |
| 88 | 88 | /**  | 
                                                        
| 89 | 89 | * @param array $modules  | 
                                                        
| 90 | - * @param BModule $parent|null  | 
                                                        |
| 90 | + * @param BModule $parent  | 
                                                        |
| 91 | 91 | * @throws CException  | 
                                                        
| 92 | 92 | */  | 
                                                        
| 93 | 93 | private function buildStructure(array $modules, $parent = null)  | 
                                                        
@@ -229,7 +229,7 @@ discard block  | 
                                                    ||
| 229 | 229 | *  | 
                                                        
| 230 | 230 | * @param BModule $module  | 
                                                        
| 231 | 231 | *  | 
                                                        
| 232 | - * @return bool  | 
                                                        |
| 232 | + * @return boolean|null  | 
                                                        |
| 233 | 233 | * @throws CHttpException  | 
                                                        
| 234 | 234 | */  | 
                                                        
| 235 | 235 | private function createFakeModulesMenu($module)  | 
                                                        
@@ -32,6 +32,11 @@ discard block  | 
                                                    ||
| 32 | 32 | |
| 33 | 33 | }  | 
                                                        
| 34 | 34 | |
| 35 | + /**  | 
                                                        |
| 36 | + * @param string $templatePath  | 
                                                        |
| 37 | + * @param string $modelPath  | 
                                                        |
| 38 | + * @param string $baseClass  | 
                                                        |
| 39 | + */  | 
                                                        |
| 35 | 40 | protected function createModel($templatePath, $modelPath, $modelName, $baseClass)  | 
                                                        
| 36 | 41 |    {
 | 
                                                        
| 37 | 42 | Yii::app()->controller->templates['model'] = Yii::getPathOfAlias($templatePath);  | 
                                                        
@@ -52,6 +57,11 @@ discard block  | 
                                                    ||
| 52 | 57 | $this->files = CMap::mergeArray($this->files, $codeModel->files);  | 
                                                        
| 53 | 58 | }  | 
                                                        
| 54 | 59 | |
| 60 | + /**  | 
                                                        |
| 61 | + * @param string $templatePath  | 
                                                        |
| 62 | + * @param string $formName  | 
                                                        |
| 63 | + * @param string $backendModelClass  | 
                                                        |
| 64 | + */  | 
                                                        |
| 55 | 65 | protected function createBackendView($templatePath, $modulePath, $formName, $backendModelClass)  | 
                                                        
| 56 | 66 |    {
 | 
                                                        
| 57 | 67 | Yii::app()->controller->templates['form'] = Yii::getPathOfAlias($templatePath);  | 
                                                        
@@ -80,6 +90,12 @@ discard block  | 
                                                    ||
| 80 | 90 | $this->files = CMap::mergeArray($this->files, $codeForm->files);  | 
                                                        
| 81 | 91 | }  | 
                                                        
| 82 | 92 | |
| 93 | + /**  | 
                                                        |
| 94 | + * @param string $templatePath  | 
                                                        |
| 95 | + * @param string $controllerPath  | 
                                                        |
| 96 | + * @param string $controllerName  | 
                                                        |
| 97 | + * @param string $baseClass  | 
                                                        |
| 98 | + */  | 
                                                        |
| 83 | 99 | protected function createController($templatePath, $controllerPath, $controllerName, $baseClass, $params = array())  | 
                                                        
| 84 | 100 |    {
 | 
                                                        
| 85 | 101 | $controllerCode = new ControllerCode();  | 
                                                        
@@ -96,6 +112,12 @@ discard block  | 
                                                    ||
| 96 | 112 | );  | 
                                                        
| 97 | 113 | }  | 
                                                        
| 98 | 114 | |
| 115 | + /**  | 
                                                        |
| 116 | + * @param string $templatePath  | 
                                                        |
| 117 | + * @param string $behaviorPath  | 
                                                        |
| 118 | + * @param string $behaviorName  | 
                                                        |
| 119 | + * @param string $baseClass  | 
                                                        |
| 120 | + */  | 
                                                        |
| 99 | 121 | protected function createBehavior($templatePath, $behaviorPath, $behaviorName, $baseClass, $params = array())  | 
                                                        
| 100 | 122 |    {
 | 
                                                        
| 101 | 123 | $params = CMap::mergeArray($params, array(  | 
                                                        
@@ -109,6 +131,9 @@ discard block  | 
                                                    ||
| 109 | 131 | );  | 
                                                        
| 110 | 132 | }  | 
                                                        
| 111 | 133 | |
| 134 | + /**  | 
                                                        |
| 135 | + * @param string $formName  | 
                                                        |
| 136 | + */  | 
                                                        |
| 112 | 137 | protected function createFrontendForm($formName)  | 
                                                        
| 113 | 138 |    {
 | 
                                                        
| 114 | 139 | $table = Yii::app()->db->getSchema()->getTable($this->tableName);  | 
                                                        
@@ -61,7 +61,7 @@  | 
                                                    ||
| 61 | 61 | }  | 
                                                        
| 62 | 62 | |
| 63 | 63 | /**  | 
                                                        
| 64 | - * @return null  | 
                                                        |
| 64 | + * @return string|null  | 
                                                        |
| 65 | 65 | */  | 
                                                        
| 66 | 66 | public function getModelSectionName()  | 
                                                        
| 67 | 67 |    {
 | 
                                                        
@@ -44,7 +44,7 @@  | 
                                                    ||
| 44 | 44 | /**  | 
                                                        
| 45 | 45 | * @param BAbstractMenuEntry $model  | 
                                                        
| 46 | 46 | * @param bool $active  | 
                                                        
| 47 | - * @param null $position  | 
                                                        |
| 47 | + * @param integer $position  | 
                                                        |
| 48 | 48 | */  | 
                                                        
| 49 | 49 | public function __construct(BAbstractMenuEntry $model, $active = false, $position = null)  | 
                                                        
| 50 | 50 |    {
 | 
                                                        
@@ -47,6 +47,7 @@  | 
                                                    ||
| 47 | 47 | |
| 48 | 48 | /**  | 
                                                        
| 49 | 49 | * @param string $scenario  | 
                                                        
| 50 | + * @return IBFrontendMenuEntry  | 
                                                        |
| 50 | 51 | */  | 
                                                        
| 51 | 52 | public function __construct($scenario = 'insert')  | 
                                                        
| 52 | 53 |    {
 | 
                                                        
@@ -40,7 +40,7 @@ discard block  | 
                                                    ||
| 40 | 40 | }  | 
                                                        
| 41 | 41 | |
| 42 | 42 | /**  | 
                                                        
| 43 | - * @param $class  | 
                                                        |
| 43 | + * @param string $class  | 
                                                        |
| 44 | 44 | *  | 
                                                        
| 45 | 45 | * @return string  | 
                                                        
| 46 | 46 | */  | 
                                                        
@@ -50,7 +50,7 @@ discard block  | 
                                                    ||
| 50 | 50 | }  | 
                                                        
| 51 | 51 | |
| 52 | 52 | /**  | 
                                                        
| 53 | - * @param $class  | 
                                                        |
| 53 | + * @param string $class  | 
                                                        |
| 54 | 54 | *  | 
                                                        
| 55 | 55 | * @return string  | 
                                                        
| 56 | 56 | */  | 
                                                        
@@ -146,7 +146,7 @@ discard block  | 
                                                    ||
| 146 | 146 | }  | 
                                                        
| 147 | 147 | |
| 148 | 148 | /**  | 
                                                        
| 149 | - * @param $pk  | 
                                                        |
| 149 | + * @param integer $pk  | 
                                                        |
| 150 | 150 | *  | 
                                                        
| 151 | 151 | * @return CDbCriteria  | 
                                                        
| 152 | 152 | */  | 
                                                        
@@ -98,6 +98,9 @@  | 
                                                    ||
| 98 | 98 |      return str_replace('product_', '', $field).'_id';
 | 
                                                        
| 99 | 99 | }  | 
                                                        
| 100 | 100 | |
| 101 | + /**  | 
                                                        |
| 102 | + * @param string $location  | 
                                                        |
| 103 | + */  | 
                                                        |
| 101 | 104 | private function checkLocation($location)  | 
                                                        
| 102 | 105 |    {
 | 
                                                        
| 103 | 106 | if( !self::$locations )  |