@@ -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) |
@@ -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 | {
|
@@ -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 ) |
@@ -119,6 +119,10 @@ discard block |
||
| 119 | 119 | return CHtml::listData(self::model()->findAllByAttributes($attributes), 'pk', 'pk'); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | + /** |
|
| 123 | + * @param integer $primaryKey |
|
| 124 | + * @param string $associationGroup |
|
| 125 | + */ |
|
| 122 | 126 | private function createTag($primaryKey, $associationGroup) |
| 123 | 127 | {
|
| 124 | 128 | while($tag = md5(microtime())) |
@@ -157,6 +161,10 @@ discard block |
||
| 157 | 161 | throw new CHttpException(500, 'Не удалось создать запись'); |
| 158 | 162 | } |
| 159 | 163 | |
| 164 | + /** |
|
| 165 | + * @param integer $pk |
|
| 166 | + * @param string $associationGroup |
|
| 167 | + */ |
|
| 160 | 168 | private function clearItem($pk, $tag, $associationGroup) |
| 161 | 169 | {
|
| 162 | 170 | if( !self::model()->deleteAllByAttributes(array('pk' => $pk, 'tag' => $tag, 'association_group' => $associationGroup)) )
|
@@ -53,6 +53,9 @@ |
||
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $productId |
|
| 58 | + */ |
|
| 56 | 59 | public function getByProductId($productId) |
| 57 | 60 | {
|
| 58 | 61 | if( is_null($this->productOptions) ) |