@@ -25,8 +25,6 @@ |
||
| 25 | 25 | |
| 26 | 26 | use Symfony\Component\Form\AbstractType; |
| 27 | 27 | use Symfony\Component\Form\FormBuilderInterface; |
| 28 | -use Symfony\Component\Form\FormError; |
|
| 29 | -use Symfony\Component\Form\FormEvents; |
|
| 30 | 28 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
| 31 | 29 | use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; |
| 32 | 30 | use Symfony\Component\Validator\Constraints as Assert; |
@@ -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; |
@@ -36,6 +36,9 @@ |
||
| 36 | 36 | { |
| 37 | 37 | protected $app; |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param \Silex\Application $app |
|
| 41 | + */ |
|
| 39 | 42 | public function __construct($app) |
| 40 | 43 | { |
| 41 | 44 | $this->app = $app; |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use Symfony\Component\Form\AbstractType; |
| 28 | 28 | use Symfony\Component\Form\Extension\Core\Type; |
| 29 | 29 | use Symfony\Component\Form\FormBuilderInterface; |
| 30 | -use Symfony\Component\Validator\Constraints as Assert; |
|
| 31 | 30 | |
| 32 | 31 | class SearchProductType extends AbstractType |
| 33 | 32 | { |
@@ -953,7 +953,7 @@ |
||
| 953 | 953 | * 失敗 : \Doctrine\DBAL\DBALExceptionエラーが発生( 接続に失敗した場合 )、エラー画面を表示しdie() |
| 954 | 954 | * 備考 : app['debug']がtrueの際は処理を行わない |
| 955 | 955 | * |
| 956 | - * @return boolean true |
|
| 956 | + * @return null|boolean true |
|
| 957 | 957 | * |
| 958 | 958 | */ |
| 959 | 959 | protected function checkDatabaseConnection() |
@@ -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 | { |
@@ -33,7 +33,6 @@ |
||
| 33 | 33 | use Symfony\Component\Console\Input\InputOption; |
| 34 | 34 | use Symfony\Component\Console\Output\OutputInterface; |
| 35 | 35 | use Symfony\Component\Console\Question\Question; |
| 36 | -use Symfony\Component\Validator\Constraints as Assert; |
|
| 37 | 36 | |
| 38 | 37 | class PluginCommand extends \Knp\Command\Command |
| 39 | 38 | { |
@@ -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()); |