src/Command/GenerateModuleCommand.php
protected function _buildScaffold()
    {
        $oScaffold = new \stdClass();
        $oScaffold->sVendor = strtolower($this->_getUserInput('Vendor Prefix', true));

        $blFirstRequest = true;

        do {

            if (!$blFirstRequest) {
                $this->output->writeLn('Module path or id is taken with given title');
            } else {
                $blFirstRequest = false;
            }

            $oScaffold->sModuleTitle = $this->_getUserInput('Module Title');
            $oScaffold->sModuleName = str_replace(' ', '', ucwords($oScaffold->sModuleTitle));
            $oScaffold->sModuleId = $oScaffold->sVendor . strtolower($oScaffold->sModuleName);

        } while (!$this->_modulePathAvailable($oScaffold->sVendor, $oScaffold->sModuleName)
            || !$this->_moduleIdAvailable($oScaffold->sModuleId));

        $oScaffold->sModuleDir = $this->_getModuleDir($oScaffold->sVendor, $oScaffold->sModuleName);
        $oScaffold->sAuthor = $this->_getUserInput('Author', true);
        $oScaffold->sUrl = $this->_getUserInput('Url', true);
        $oScaffold->sEmail = $this->_getUserInput('Email', true);

        return $oScaffold;
    }
protected function _buildScaffold()
    {
        $oScaffold = new \stdClass();
        $oScaffold->sVendor = strtolower($this->_getUserInput('Vendor Prefix', true));

        $blFirstRequest = true;

        do {

            if (!$blFirstRequest) {
                $this->output->writeLn('Module path or id is taken with given title');
            } else {
                $blFirstRequest = false;
            }

            $oScaffold->sModuleTitle = $this->_getUserInput('Module Title');
            $oScaffold->sModuleName = str_replace(' ', '', ucwords($oScaffold->sModuleTitle));
            $oScaffold->sModuleId = $oScaffold->sVendor . strtolower($oScaffold->sModuleName);

        } while (!$this->_modulePathAvailable($oScaffold->sVendor, $oScaffold->sModuleName)
            || !$this->_moduleIdAvailable($oScaffold->sModuleId));

        $oScaffold->sModuleDir = $this->_getModuleDir($oScaffold->sVendor, $oScaffold->sModuleName);
        $oScaffold->sAuthor = $this->_getUserInput('Author', true);
        $oScaffold->sUrl = $this->_getUserInput('Url', true);
        $oScaffold->sEmail = $this->_getUserInput('Email', true);

        return $oScaffold;
    }
protected function _buildScaffold ( ) { $ oScaffold = new \ stdClass ( ) ; $ oScaffold -> sVendor = strtolower ( $ this -> _getUserInput ( 'Vendor Prefix' , true ) ) ; $ blFirstRequest = true ; do { if ( ! $ blFirstRequest ) { $ this -> output -> writeLn ( 'Module path or id is taken with given title' ) ; } else { $ blFirstRequest = false ; } $ oScaffold -> sModuleTitle = $ this -> _getUserInput ( 'Module Title' ) ; $ oScaffold -> sModuleName = str_replace ( ' ' , '' , ucwords ( $ oScaffold -> sModuleTitle ) ) ; $ oScaffold -> sModuleId = $ oScaffold -> sVendor . strtolower ( $ oScaffold -> sModuleName ) ; } while ( ! $ this -> _modulePathAvailable ( $ oScaffold -> sVendor , $ oScaffold -> sModuleName ) || ! $ this -> _moduleIdAvailable ( $ oScaffold -> sModuleId ) ) ; $ oScaffold -> sModuleDir = $ this -> _getModuleDir ( $ oScaffold -> sVendor , $ oScaffold -> sModuleName ) ; $ oScaffold -> sAuthor = $ this -> _getUserInput ( 'Author' , true ) ; $ oScaffold -> sUrl = $ this -> _getUserInput ( 'Url' , true ) ; $ oScaffold -> sEmail = $ this -> _getUserInput ( 'Email' , true ) ; return $ oScaffold ; }
Build scaffold object from user inputs

@return \stdClass
Build scaffold object from user inputs