InfyOm\Generator\Common\CommandData::getInputFields PHP Method

getInputFields() public method

public getInputFields ( )
    public function getInputFields()
    {
        $this->inputFields = [];
        if ($this->getOption('fieldsFile') or $this->getOption('jsonFromGUI')) {
            $this->getInputFromFileOrJson();
        } elseif ($this->getOption('fromTable')) {
            $this->getInputFromTable();
        } else {
            $this->getInputFromConsole();
        }
    }

Usage Example

Ejemplo n.º 1
0
 public function handle()
 {
     $this->commandData->modelName = $this->argument('model');
     $this->commandData->initCommandData();
     $this->commandData->getInputFields();
 }