function init()
 {
     if ($this->hasKickstartData()) {
         $data = $this->kickstartData();
         $siteType = $this->chosenSiteType();
         $accessType = $data['Access'];
         if (in_array($accessType, array('url', 'port', 'hostname'))) {
             $siteType['access_type'] = $accessType;
         }
         $this->setAccessValues($siteType);
         $this->storeSiteType($siteType);
         return $this->kickstartContinueNextStep();
     }
     $siteType = $this->chosenSiteType();
     // If windows installer, install using url site access
     if (eZSetupTestInstaller() == 'windows') {
         $siteType['access_type'] = 'url';
         $siteType['access_type_value'] = $siteType['identifier'];
         $siteType['admin_access_type_value'] = $siteType['identifier'] . '_admin';
         $this->storeSiteType($siteType);
         return true;
     }
     if (!isset($siteType['access_type'])) {
         $siteType['access_type'] = 'url';
     }
     $this->storeSiteType($siteType);
     return false;
     // Always show site access
 }
    function init()
    {
        $databaseMap = eZSetupDatabaseMap();

        if ( $this->hasKickstartData() )
        {
            $data = $this->kickstartData();
            $extension = $data['Type'];
            $map = array( 'postgresql' => 'pgsql' );
            if ( isset( $map[$extension] ) )
                $extension = $map[$extension];

            if ( isset( $databaseMap[$extension] ) )
            {
                $this->PersistenceList['database_info'] = $databaseMap[$extension];
                return $this->kickstartContinueNextStep();
            }
        }

        if ( eZSetupTestInstaller() == 'windows' )
        {
            $this->PersistenceList['database_info'] = $databaseMap['mysql'];
            return true;
        }

        $databaseMap = eZSetupDatabaseMap();
        $database = null;
        $databaseCount = 0;
        if ( isset( $this->PersistenceList['database_extensions']['found'] ) )
        {
            $databaseExtensions = $this->PersistenceList['database_extensions']['found'];
            foreach ( $databaseExtensions as $extension )
            {
                if ( !isset( $databaseMap[$extension] ) )
                    continue;
                $database = $databaseMap[$extension];
                $database['name'] = null;
                $databaseCount++;
            }
        }

        if ( $databaseCount != 1 )
        {
            return false;
        }

        $this->PersistenceList['database_info'] = $database;

        return true;
    }