@@ -36,6 +36,9 @@ discard block |
||
| 36 | 36 | const EVENT_YML = 'event.yml'; |
| 37 | 37 | private $app; |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param \Silex\Application $app |
|
| 41 | + */ |
|
| 39 | 42 | public function __construct($app) |
| 40 | 43 | { |
| 41 | 44 | $this->app = $app; |
@@ -98,6 +101,9 @@ discard block |
||
| 98 | 101 | } |
| 99 | 102 | } |
| 100 | 103 | |
| 104 | + /** |
|
| 105 | + * @param string $dir |
|
| 106 | + */ |
|
| 101 | 107 | public function unpackPluginArchive($archive, $dir) |
| 102 | 108 | { |
| 103 | 109 | $extension = pathinfo($archive, PATHINFO_EXTENSION); |
@@ -116,6 +122,9 @@ discard block |
||
| 116 | 122 | } |
| 117 | 123 | } |
| 118 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $dir |
|
| 127 | + */ |
|
| 119 | 128 | public function checkPluginArchiveContent($dir) |
| 120 | 129 | { |
| 121 | 130 | $meta = $this->readYml($dir.'/config.yml'); |
@@ -138,6 +147,9 @@ discard block |
||
| 138 | 147 | } |
| 139 | 148 | } |
| 140 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $yml |
|
| 152 | + */ |
|
| 141 | 153 | public function readYml($yml) |
| 142 | 154 | { |
| 143 | 155 | return Yaml::Parse($yml); |
@@ -151,6 +163,9 @@ discard block |
||
| 151 | 163 | // ディレクトリ名などに使われれるので厳しめ |
| 152 | 164 | } |
| 153 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $path |
|
| 168 | + */ |
|
| 154 | 169 | public function deleteFile($path) |
| 155 | 170 | { |
| 156 | 171 | $f = new Filesystem(); |
@@ -170,6 +185,9 @@ discard block |
||
| 170 | 185 | return $this->app['config']['plugin_realdir'].'/'.$name; |
| 171 | 186 | } |
| 172 | 187 | |
| 188 | + /** |
|
| 189 | + * @param string $d |
|
| 190 | + */ |
|
| 173 | 191 | public function createPluginDir($d) |
| 174 | 192 | { |
| 175 | 193 | $b = mkdir($d); |
@@ -229,6 +247,9 @@ discard block |
||
| 229 | 247 | return $p; |
| 230 | 248 | } |
| 231 | 249 | |
| 250 | + /** |
|
| 251 | + * @param string $method |
|
| 252 | + */ |
|
| 232 | 253 | public function callPluginManagerMethod($meta, $method) |
| 233 | 254 | { |
| 234 | 255 | $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager'; |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | * 仮受注情報作成 |
| 138 | 138 | * |
| 139 | 139 | * @param $Customer |
| 140 | - * @param $preOrderId |
|
| 140 | + * @param string $preOrderId |
|
| 141 | 141 | * @return mixed |
| 142 | 142 | * @throws \Doctrine\ORM\NoResultException |
| 143 | 143 | * @throws \Doctrine\ORM\NonUniqueResultException |
@@ -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; |
@@ -52,11 +52,17 @@ |
||
| 52 | 52 | return $form; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param Application $app |
|
| 57 | + */ |
|
| 55 | 58 | protected function getSecurity($app) |
| 56 | 59 | { |
| 57 | 60 | return $app['security.token_storage']; |
| 58 | 61 | } |
| 59 | 62 | |
| 63 | + /** |
|
| 64 | + * @param Application $app |
|
| 65 | + */ |
|
| 60 | 66 | protected function isTokenValid($app) |
| 61 | 67 | { |
| 62 | 68 | $csrf = $app['form.csrf_provider']; |
@@ -725,7 +725,7 @@ |
||
| 725 | 725 | * 成功 : trueを返却 |
| 726 | 726 | * 失敗 : \Doctrine\DBAL\DBALExceptionエラーが発生( 接続に失敗した場合 )、エラー画面を表示しdie() |
| 727 | 727 | * 備考 : app['debug']がtrueの際は処理を行わない |
| 728 | - * @return boolean true |
|
| 728 | + * @return null|boolean true |
|
| 729 | 729 | * |
| 730 | 730 | */ |
| 731 | 731 | protected function checkDatabaseConnection() |
@@ -325,7 +325,6 @@ discard block |
||
| 325 | 325 | |
| 326 | 326 | /** |
| 327 | 327 | * @param $row |
| 328 | - * @param null $callback |
|
| 329 | 328 | */ |
| 330 | 329 | public function fputcsv($row) |
| 331 | 330 | { |
@@ -424,7 +423,6 @@ discard block |
||
| 424 | 423 | * XXX self::setExportQueryBuilder() をコールする前に EntityManager を取得したいので、引数で渡している |
| 425 | 424 | * |
| 426 | 425 | * @param array $searchData セッションから取得した検索条件の配列 |
| 427 | - * @param EntityManager $em |
|
| 428 | 426 | */ |
| 429 | 427 | protected function findDeserializeObjects(array &$searchData) |
| 430 | 428 | { |
@@ -510,6 +510,8 @@ discard block |
||
| 510 | 510 | /** |
| 511 | 511 | * 登録、更新時のエラー画面表示 |
| 512 | 512 | * |
| 513 | + * @param Application $app |
|
| 514 | + * @param boolean $not_product_class |
|
| 513 | 515 | */ |
| 514 | 516 | protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null) |
| 515 | 517 | { |
@@ -559,6 +561,7 @@ discard block |
||
| 559 | 561 | |
| 560 | 562 | /** |
| 561 | 563 | * 規格1と規格2を組み合わせた商品規格を作成 |
| 564 | + * @param Application $app |
|
| 562 | 565 | */ |
| 563 | 566 | private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null) |
| 564 | 567 | { |
@@ -646,6 +649,7 @@ discard block |
||
| 646 | 649 | * |
| 647 | 650 | * @param $productClassDest コピー先となる商品規格 |
| 648 | 651 | * @param $productClassOrig コピー元となる商品規格 |
| 652 | + * @param Application $app |
|
| 649 | 653 | */ |
| 650 | 654 | private function setDefualtProductClass($app, $productClassDest, $productClassOrig) { |
| 651 | 655 | $productClassDest->setDeliveryDate($productClassOrig->getDeliveryDate()); |
@@ -687,6 +691,7 @@ discard block |
||
| 687 | 691 | * 商品規格を登録 |
| 688 | 692 | * |
| 689 | 693 | * @param $ProductClasses 登録される商品規格 |
| 694 | + * @param Application $app |
|
| 690 | 695 | */ |
| 691 | 696 | private function insertProductClass($app, $Product, $ProductClasses) { |
| 692 | 697 | |
@@ -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; |