options() public method

public options ( $actionID )
 /**
  * @inheritdoc
  */
 public function options($actionID)
 {
     if ($actionID == 'up') {
         return array_merge(parent::options($actionID), ['includeModuleMigrations']);
     }
     return parent::options($actionID);
 }
 /**
  * @inheritdoc
  */
 public function options($actionID)
 {
     return array_merge(parent::options($actionID), $actionID == 'create' ? ['command', 'columnType', 'column', 'tableOptions', 'table'] : []);
 }
Beispiel #3
0
 /**
  * Gives the user an option to choose from. Giving '?' as an input will show
  * a list of options to choose from and their explanations.
  *
  * @param string $prompt the prompt message
  * @param array $options Key-value array of options to choose from
  *
  * @return string An option character the user chose
  */
 public function options($actionID)
 {
     return array_merge(parent::options($actionID), ['class', 'host', 'name', 'username', 'password', 'language', 'charset']);
 }
 /**
  * Add param `moduleId` for actions: `up`, `down` and `create`
  * @param string $actionID
  * @return array
  */
 public function options($actionID)
 {
     $array_merge = array_merge(parent::options($actionID), in_array($actionID, ['up', 'down', 'create']) ? ['moduleId'] : []);
     return $array_merge;
 }
 public function options($actionID)
 {
     return array_merge(parent::options($actionID), ['migrationPaths']);
 }
Beispiel #6
0
 /**
  * @inheritdoc
  */
 public function options($actionId)
 {
     return array_merge(parent::options($actionId), $actionId == 'create' ? ['lang'] : []);
 }
 /**
  * @inheritdoc
  */
 public function options($actionId)
 {
     return array_merge(parent::options($actionId), ['migrationLookup']);
 }