Command/InstallDemoCommand.php
private function _createValue($name, $type, $label, $value, $help, $formOptions, $position)
    {
        $created = $this->configBuilder->addValue(
            'demo',
            'demo',
            $name,
            $type,
            $label,
            $value,
            $help,
            $formOptions,
            $position
        );
        if ($created) {
            $this->output->writeln(sprintf('<info>Create value %s:%s:%s</info>', 'demo', 'demo', $name));
        } else {
            $this->output->writeln(sprintf('<comment>Value %s:%s:%s already exists.</comment>', 'demo', 'demo', $name));
        }
    }
private function _createValue($name, $type, $label, $value, $help, $formOptions, $position)
    {
        $created = $this->configBuilder->addValue(
            'demo',
            'demo',
            $name,
            $type,
            $label,
            $value,
            $help,
            $formOptions,
            $position
        );
        if ($created) {
            $this->output->writeln(sprintf('<info>Create value %s:%s:%s</info>', 'demo', 'demo', $name));
        } else {
            $this->output->writeln(sprintf('<comment>Value %s:%s:%s already exists.</comment>', 'demo', 'demo', $name));
        }
    }
private function _createValue ( $ name , $ type , $ label , $ value , $ help , $ formOptions , $ position ) { $ created = $ this -> configBuilder -> addValue ( 'demo' , 'demo' , $ name , $ type , $ label , $ value , $ help , $ formOptions , $ position ) ; if ( $ created ) { $ this -> output -> writeln ( sprintf ( '<info>Create value %s:%s:%s</info>' , 'demo' , 'demo' , $ name ) ) ; } else { $ this -> output -> writeln ( sprintf ( '<comment>Value %s:%s:%s already exists.</comment>' , 'demo' , 'demo' , $ name ) ) ; } }
Create a value

@param string  $name        [description]
@param string  $type        [description]
@param string  $label       [description]
@param string  $value       [description]
@param string  $help        [description]
@param array   $formOptions [description]
@param integer $position    [description]

@return Boolean
Create a value