N98\Util\Console\Helper\ParameterHelper::websitesQuestion PHP Method

websitesQuestion() private method

See also: askWebsite
private websitesQuestion ( $storeManager ) : array
return array websites (integers if website IDs, 0-indexed) and question array (strings)
    private function websitesQuestion($storeManager)
    {
        $i = 0;
        $websites = array();
        $question = array();
        foreach ($storeManager->getWebsites() as $website) {
            /* @var $website Mage_Core_Model_Website */
            $value = $website->getId();
            $label = sprintf('%s - %s', $website->getCode(), $website->getName());
            $position = $i + 1;
            $websites[$i] = $value;
            $question[$i] = sprintf('<comment>[%d]</comment> %s' . PHP_EOL, $position, $label);
        }
        return array($websites, $question);
    }