| @@ 55-90 (lines=36) @@ | ||
| 52 | $this->output->writeln(''); |
|
| 53 | } |
|
| 54 | ||
| 55 | protected function initFieldSet() |
|
| 56 | { |
|
| 57 | $this->paramList = array( |
|
| 58 | 'pluginCode' => array( |
|
| 59 | 'no' => 1, |
|
| 60 | 'label' => '[+]Plugin Code: ', |
|
| 61 | 'value' => null, |
|
| 62 | 'name' => '[+]Please enter Plugin Code (First letter is uppercase alphabet only. alphabet and numbers are allowed.)', |
|
| 63 | 'validation' => array( |
|
| 64 | 'isRequired' => true, |
|
| 65 | 'isNotCode' => $this->getPluginCodes(), |
|
| 66 | ) |
|
| 67 | ), |
|
| 68 | 'tableList' => array( |
|
| 69 | 'no' => 2, |
|
| 70 | 'label' => '[+]Table name: ', |
|
| 71 | 'value' => array(), |
|
| 72 | 'name' => '[+]Please enter table name', |
|
| 73 | 'validation' => array( |
|
| 74 | 'isRequired' => false, |
|
| 75 | 'inArray' => $this->getTableList(), |
|
| 76 | ) |
|
| 77 | ), |
|
| 78 | 'supportFlag' => array( |
|
| 79 | 'no' => 3, |
|
| 80 | 'label' => '[+]Old version support: ', |
|
| 81 | 'value' => null, |
|
| 82 | 'name' => '[+]Do you want to support old versions too? [y/n]', |
|
| 83 | 'show' => array(1 => 'Yes', 0 => 'No'), |
|
| 84 | 'validation' => array( |
|
| 85 | 'isRequired' => true, |
|
| 86 | 'choice' => array('y' => 1, 'n' => 0), |
|
| 87 | ) |
|
| 88 | ) |
|
| 89 | ); |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * プラグイン用テーブル一覧(plg_xxxx)の取得 |
|
| @@ 52-87 (lines=36) @@ | ||
| 49 | $this->output->writeln(''); |
|
| 50 | } |
|
| 51 | ||
| 52 | protected function initFieldSet() |
|
| 53 | { |
|
| 54 | $this->paramList = array( |
|
| 55 | 'pluginCode' => array( |
|
| 56 | 'no' => 1, |
|
| 57 | 'label' => '[+]Plugin Code: ', |
|
| 58 | 'value' => null, |
|
| 59 | 'name' => '[+]Please enter Plugin Code (First letter is uppercase alphabet only. alphabet and numbers are allowed.)', |
|
| 60 | 'validation' => array( |
|
| 61 | 'isRequired' => true, |
|
| 62 | 'isNotCode' => $this->getPluginCodes(), |
|
| 63 | ) |
|
| 64 | ), |
|
| 65 | 'ymlList' => array( |
|
| 66 | 'no' => 2, |
|
| 67 | 'label' => '[+]Yml file name: ', |
|
| 68 | 'value' => array(), |
|
| 69 | 'name' => '[+]Plese enter yml file name', |
|
| 70 | 'validation' => array( |
|
| 71 | 'isRequired' => false, |
|
| 72 | 'inArray' => 'getYamlList', |
|
| 73 | ) |
|
| 74 | ), |
|
| 75 | 'supportFlag' => array( |
|
| 76 | 'no' => 3, |
|
| 77 | 'label' => '[+]Old version support: ', |
|
| 78 | 'value' => null, |
|
| 79 | 'name' => '[+]Do you want to support old versions too? [y/n]', |
|
| 80 | 'show' => array(1 => 'Yes', 0 => 'No'), |
|
| 81 | 'validation' => array( |
|
| 82 | 'isRequired' => true, |
|
| 83 | 'choice' => array('y' => 1, 'n' => 0), |
|
| 84 | ) |
|
| 85 | ) |
|
| 86 | ); |
|
| 87 | } |
|
| 88 | ||
| 89 | protected function getYamlList() |
|
| 90 | { |
|