@@ -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) |
@@ -529,6 +529,9 @@ discard block |
||
| 529 | 529 | /** |
| 530 | 530 | * 登録、更新時のエラー画面表示 |
| 531 | 531 | * |
| 532 | + * @param Application $app |
|
| 533 | + * @param boolean $not_product_class |
|
| 534 | + * @param \Symfony\Component\Form\FormInterface $classForm |
|
| 532 | 535 | */ |
| 533 | 536 | protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null) |
| 534 | 537 | { |
@@ -580,6 +583,7 @@ discard block |
||
| 580 | 583 | |
| 581 | 584 | /** |
| 582 | 585 | * 規格1と規格2を組み合わせた商品規格を作成 |
| 586 | + * @param Application $app |
|
| 583 | 587 | */ |
| 584 | 588 | private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null) |
| 585 | 589 | { |
@@ -667,6 +671,7 @@ discard block |
||
| 667 | 671 | * |
| 668 | 672 | * @param $productClassDest コピー先となる商品規格 |
| 669 | 673 | * @param $productClassOrig コピー元となる商品規格 |
| 674 | + * @param Application $app |
|
| 670 | 675 | */ |
| 671 | 676 | private function setDefualtProductClass($app, $productClassDest, $productClassOrig) { |
| 672 | 677 | $productClassDest->setDeliveryDate($productClassOrig->getDeliveryDate()); |
@@ -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) |
@@ -698,6 +701,8 @@ discard block |
||
| 698 | 701 | |
| 699 | 702 | /** |
| 700 | 703 | * 商品カテゴリの削除、登録 |
| 704 | + * @param Application $app |
|
| 705 | + * @param CsvImportService $data |
|
| 701 | 706 | */ |
| 702 | 707 | protected function createProductCategory($row, Product $Product, $app, $data) |
| 703 | 708 | { |
@@ -797,6 +802,8 @@ discard block |
||
| 797 | 802 | |
| 798 | 803 | /** |
| 799 | 804 | * 商品規格分類1、商品規格分類2がnullとなる商品規格情報を作成 |
| 805 | + * @param Application $app |
|
| 806 | + * @param CsvImportService $data |
|
| 800 | 807 | */ |
| 801 | 808 | protected function createProductClass($row, Product $Product, $app, $data, $ClassCategory1 = null, $ClassCategory2 = null) |
| 802 | 809 | { |
@@ -938,6 +945,8 @@ discard block |
||
| 938 | 945 | |
| 939 | 946 | /** |
| 940 | 947 | * 商品規格情報を更新 |
| 948 | + * @param Application $app |
|
| 949 | + * @param CsvImportService $data |
|
| 941 | 950 | */ |
| 942 | 951 | protected function updateProductClass($row, Product $Product, ProductClass $ProductClass, $app, $data) |
| 943 | 952 | { |
@@ -1084,6 +1093,7 @@ discard block |
||
| 1084 | 1093 | /** |
| 1085 | 1094 | * 登録、更新時のエラー画面表示 |
| 1086 | 1095 | * |
| 1096 | + * @param string $message |
|
| 1087 | 1097 | */ |
| 1088 | 1098 | protected function addErrors($message) |
| 1089 | 1099 | { |
@@ -1158,6 +1168,7 @@ discard block |
||
| 1158 | 1168 | * ProductCategory作成 |
| 1159 | 1169 | * @param \Eccube\Entity\Product $Product |
| 1160 | 1170 | * @param \Eccube\Entity\Category $Category |
| 1171 | + * @param integer $rank |
|
| 1161 | 1172 | * @return ProductCategory |
| 1162 | 1173 | */ |
| 1163 | 1174 | private function makeProductCategory($Product, $Category, $rank) |
@@ -792,6 +792,7 @@ |
||
| 792 | 792 | * ProductCategory作成 |
| 793 | 793 | * @param \Eccube\Entity\Product $Product |
| 794 | 794 | * @param \Eccube\Entity\Category $Category |
| 795 | + * @param integer $count |
|
| 795 | 796 | * @return \Eccube\Entity\ProductCategory |
| 796 | 797 | */ |
| 797 | 798 | private function createProductCategory($Product, $Category, $count) |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | * Send order mail. |
| 230 | 230 | * |
| 231 | 231 | * @param \Eccube\Entity\Order $Order 受注情報 |
| 232 | - * @return string |
|
| 232 | + * @return \Swift_Mime_MimePart |
|
| 233 | 233 | */ |
| 234 | 234 | public function sendOrderMail(\Eccube\Entity\Order $Order) |
| 235 | 235 | { |
@@ -964,7 +964,7 @@ |
||
| 964 | 964 | * 失敗 : \Doctrine\DBAL\DBALExceptionエラーが発生( 接続に失敗した場合 )、エラー画面を表示しdie() |
| 965 | 965 | * 備考 : app['debug']がtrueの際は処理を行わない |
| 966 | 966 | * |
| 967 | - * @return boolean true |
|
| 967 | + * @return null|boolean true |
|
| 968 | 968 | * |
| 969 | 969 | */ |
| 970 | 970 | protected function checkDatabaseConnection() |
@@ -329,6 +329,9 @@ |
||
| 329 | 329 | flush(); |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | + /** |
|
| 333 | + * @param InstallApplication $app |
|
| 334 | + */ |
|
| 332 | 335 | private function checkModules($app) |
| 333 | 336 | { |
| 334 | 337 | foreach ($this->required_modules as $module) { |
@@ -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'; |