@@ -35,6 +35,9 @@ |
||
| 35 | 35 | { |
| 36 | 36 | private $app; |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param \Silex\Application $app |
|
| 40 | + */ |
|
| 38 | 41 | public function __construct($app) |
| 39 | 42 | { |
| 40 | 43 | $this->app = $app; |
@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | const EVENT_YML = 'event.yml'; |
| 38 | 38 | private $app; |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param \Silex\Application $app |
|
| 42 | + */ |
|
| 40 | 43 | public function __construct($app) |
| 41 | 44 | { |
| 42 | 45 | $this->app = $app; |
@@ -102,6 +105,9 @@ discard block |
||
| 102 | 105 | } |
| 103 | 106 | } |
| 104 | 107 | |
| 108 | + /** |
|
| 109 | + * @param string $dir |
|
| 110 | + */ |
|
| 105 | 111 | public function unpackPluginArchive($archive, $dir) |
| 106 | 112 | { |
| 107 | 113 | $extension = pathinfo($archive, PATHINFO_EXTENSION); |
@@ -120,6 +126,9 @@ discard block |
||
| 120 | 126 | } |
| 121 | 127 | } |
| 122 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $dir |
|
| 131 | + */ |
|
| 123 | 132 | public function checkPluginArchiveContent($dir, array $config_cache = array()) |
| 124 | 133 | { |
| 125 | 134 | try { |
@@ -161,6 +170,9 @@ discard block |
||
| 161 | 170 | } |
| 162 | 171 | } |
| 163 | 172 | |
| 173 | + /** |
|
| 174 | + * @param string $yml |
|
| 175 | + */ |
|
| 164 | 176 | public function readYml($yml) |
| 165 | 177 | { |
| 166 | 178 | if (file_exists($yml)) { |
@@ -178,6 +190,9 @@ discard block |
||
| 178 | 190 | // ディレクトリ名などに使われれるので厳しめ |
| 179 | 191 | } |
| 180 | 192 | |
| 193 | + /** |
|
| 194 | + * @param string $path |
|
| 195 | + */ |
|
| 181 | 196 | public function deleteFile($path) |
| 182 | 197 | { |
| 183 | 198 | $f = new Filesystem(); |
@@ -197,6 +212,9 @@ discard block |
||
| 197 | 212 | return $this->app['config']['plugin_realdir'].'/'.$name; |
| 198 | 213 | } |
| 199 | 214 | |
| 215 | + /** |
|
| 216 | + * @param string $d |
|
| 217 | + */ |
|
| 200 | 218 | public function createPluginDir($d) |
| 201 | 219 | { |
| 202 | 220 | $b = @mkdir($d); |
@@ -256,6 +274,9 @@ discard block |
||
| 256 | 274 | return $p; |
| 257 | 275 | } |
| 258 | 276 | |
| 277 | + /** |
|
| 278 | + * @param string $method |
|
| 279 | + */ |
|
| 259 | 280 | public function callPluginManagerMethod($meta, $method) |
| 260 | 281 | { |
| 261 | 282 | $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager'; |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | * @param array $metadatas |
| 349 | 349 | * @param array $fsList |
| 350 | 350 | * @param $pluginCode |
| 351 | - * @param $codePath |
|
| 351 | + * @param string $codePath |
|
| 352 | 352 | */ |
| 353 | 353 | protected function generateMigration(array $metadatas, array &$fsList = array(), $pluginCode, $codePath) |
| 354 | 354 | { |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | * |
| 374 | 374 | * @param $pluginCode |
| 375 | 375 | * @param array $metadatas |
| 376 | - * @return mixed|string |
|
| 376 | + * @return string |
|
| 377 | 377 | */ |
| 378 | 378 | protected function makeMigration($pluginCode, array $metadatas) |
| 379 | 379 | { |
@@ -590,6 +590,8 @@ discard block |
||
| 590 | 590 | /** |
| 591 | 591 | * 登録、更新時のエラー画面表示 |
| 592 | 592 | * |
| 593 | + * @param Application $app |
|
| 594 | + * @param string $twig |
|
| 593 | 595 | */ |
| 594 | 596 | protected function render($app, $form, $headers, $twig) |
| 595 | 597 | { |
@@ -621,6 +623,7 @@ discard block |
||
| 621 | 623 | * アップロードされたCSVファイルの行ごとの処理 |
| 622 | 624 | * |
| 623 | 625 | * @param $formFile |
| 626 | + * @param Application $app |
|
| 624 | 627 | * @return CsvImportService |
| 625 | 628 | */ |
| 626 | 629 | protected function getImportData($app, $formFile) |
@@ -666,6 +669,7 @@ discard block |
||
| 666 | 669 | |
| 667 | 670 | /** |
| 668 | 671 | * 商品画像の削除、登録 |
| 672 | + * @param CsvImportService $data |
|
| 669 | 673 | */ |
| 670 | 674 | protected function createProductImage($row, Product $Product, $data) |
| 671 | 675 | { |
@@ -710,6 +714,8 @@ discard block |
||
| 710 | 714 | |
| 711 | 715 | /** |
| 712 | 716 | * 商品カテゴリの削除、登録 |
| 717 | + * @param Application $app |
|
| 718 | + * @param CsvImportService $data |
|
| 713 | 719 | */ |
| 714 | 720 | protected function createProductCategory($row, Product $Product, $app, $data) |
| 715 | 721 | { |
@@ -809,6 +815,8 @@ discard block |
||
| 809 | 815 | |
| 810 | 816 | /** |
| 811 | 817 | * 商品規格分類1、商品規格分類2がnullとなる商品規格情報を作成 |
| 818 | + * @param Application $app |
|
| 819 | + * @param CsvImportService $data |
|
| 812 | 820 | */ |
| 813 | 821 | protected function createProductClass($row, Product $Product, $app, $data, $ClassCategory1 = null, $ClassCategory2 = null) |
| 814 | 822 | { |
@@ -950,6 +958,8 @@ discard block |
||
| 950 | 958 | |
| 951 | 959 | /** |
| 952 | 960 | * 商品規格情報を更新 |
| 961 | + * @param Application $app |
|
| 962 | + * @param CsvImportService $data |
|
| 953 | 963 | */ |
| 954 | 964 | protected function updateProductClass($row, Product $Product, ProductClass $ProductClass, $app, $data) |
| 955 | 965 | { |
@@ -1096,6 +1106,7 @@ discard block |
||
| 1096 | 1106 | /** |
| 1097 | 1107 | * 登録、更新時のエラー画面表示 |
| 1098 | 1108 | * |
| 1109 | + * @param string $message |
|
| 1099 | 1110 | */ |
| 1100 | 1111 | protected function addErrors($message) |
| 1101 | 1112 | { |
@@ -1170,6 +1181,7 @@ discard block |
||
| 1170 | 1181 | * ProductCategory作成 |
| 1171 | 1182 | * @param \Eccube\Entity\Product $Product |
| 1172 | 1183 | * @param \Eccube\Entity\Category $Category |
| 1184 | + * @param integer $rank |
|
| 1173 | 1185 | * @return ProductCategory |
| 1174 | 1186 | */ |
| 1175 | 1187 | private function makeProductCategory($Product, $Category, $rank) |
@@ -531,6 +531,9 @@ discard block |
||
| 531 | 531 | /** |
| 532 | 532 | * 登録、更新時のエラー画面表示 |
| 533 | 533 | * |
| 534 | + * @param Application $app |
|
| 535 | + * @param boolean $not_product_class |
|
| 536 | + * @param \Symfony\Component\Form\FormInterface $classForm |
|
| 534 | 537 | */ |
| 535 | 538 | protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null) |
| 536 | 539 | { |
@@ -582,6 +585,7 @@ discard block |
||
| 582 | 585 | |
| 583 | 586 | /** |
| 584 | 587 | * 規格1と規格2を組み合わせた商品規格を作成 |
| 588 | + * @param Application $app |
|
| 585 | 589 | */ |
| 586 | 590 | private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null) |
| 587 | 591 | { |
@@ -669,6 +673,7 @@ discard block |
||
| 669 | 673 | * |
| 670 | 674 | * @param $productClassDest コピー先となる商品規格 |
| 671 | 675 | * @param $productClassOrig コピー元となる商品規格 |
| 676 | + * @param Application $app |
|
| 672 | 677 | */ |
| 673 | 678 | private function setDefualtProductClass($app, $productClassDest, $productClassOrig) { |
| 674 | 679 | $productClassDest->setDeliveryDate($productClassOrig->getDeliveryDate()); |
@@ -851,6 +851,7 @@ |
||
| 851 | 851 | * ProductCategory作成 |
| 852 | 852 | * @param \Eccube\Entity\Product $Product |
| 853 | 853 | * @param \Eccube\Entity\Category $Category |
| 854 | + * @param integer $count |
|
| 854 | 855 | * @return \Eccube\Entity\ProductCategory |
| 855 | 856 | */ |
| 856 | 857 | private function createProductCategory($Product, $Category, $count) |
@@ -347,6 +347,9 @@ |
||
| 347 | 347 | flush(); |
| 348 | 348 | } |
| 349 | 349 | |
| 350 | + /** |
|
| 351 | + * @param InstallApplication $app |
|
| 352 | + */ |
|
| 350 | 353 | private function checkModules($app) |
| 351 | 354 | { |
| 352 | 355 | foreach ($this->required_modules as $module) { |
@@ -1373,7 +1373,6 @@ |
||
| 1373 | 1373 | /** |
| 1374 | 1374 | * フォームの情報からお届け先のインデックスを返す |
| 1375 | 1375 | * |
| 1376 | - * @param Application $app |
|
| 1377 | 1376 | * @param mixed $CustomerAddressData |
| 1378 | 1377 | * @return int |
| 1379 | 1378 | */ |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Constructor. |
| 59 | 59 | * |
| 60 | - * @param Query|QueryBuilder $query A Doctrine ORM query or query builder. |
|
| 60 | + * @param Query $query A Doctrine ORM query or query builder. |
|
| 61 | 61 | * @param boolean $fetchJoinCollection Whether the query joins a collection (true by default). |
| 62 | 62 | */ |
| 63 | 63 | public function __construct($query, $fetchJoinCollection = true) |