public function findAll()
    {

        // initialize the array with the available store websites
        $storeWebsites = array();

        // execute the prepared statement
        $this->storeWebsitesStmt->execute();

        // load the available store websites
        $availableStoreWebsites = $this->storeWebsitesStmt->fetchAll();

        // fetch the store websites and assemble them as array with the codes as key
        foreach ($availableStoreWebsites as $storeWebsite) {
            $storeWebsites[$storeWebsite[MemberNames::CODE]] = $storeWebsite;
        }

        // return the array with the store websites
        return $storeWebsites;
    }
public function findAll()
    {

        // initialize the array with the available store websites
        $storeWebsites = array();

        // execute the prepared statement
        $this->storeWebsitesStmt->execute();

        // load the available store websites
        $availableStoreWebsites = $this->storeWebsitesStmt->fetchAll();

        // fetch the store websites and assemble them as array with the codes as key
        foreach ($availableStoreWebsites as $storeWebsite) {
            $storeWebsites[$storeWebsite[MemberNames::CODE]] = $storeWebsite;
        }

        // return the array with the store websites
        return $storeWebsites;
    }
public function findAll ( ) { // initialize the array with the available store websites $ storeWebsites = array ( ) ; // execute the prepared statement $ this -> storeWebsitesStmt -> execute ( ) ; // load the available store websites $ availableStoreWebsites = $ this -> storeWebsitesStmt -> fetchAll ( ) ; // fetch the store websites and assemble them as array with the codes as key foreach ( $ availableStoreWebsites as $ storeWebsite ) { $ storeWebsites [ $ storeWebsite [ MemberNames :: CODE ] ] = $ storeWebsite ; } // return the array with the store websites return $ storeWebsites ; }
Return's an array with the available store websites and their
code as keys.

@return array The array with all available store websites
Return s an array with the available store websites and their code as keys .