Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6803 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6803 Rev 6804
Línea 41... Línea 41...
41
     *
41
     *
42
     * @param AdapterInterface $adapter
42
     * @param AdapterInterface $adapter
43
     */
43
     */
44
    public function __construct($adapter) 
44
    public function __construct($adapter) 
45
    {
45
    {
46
        $this->mainHostnameInUse = false;
-
 
47
        $this->alternativeHostnameInUse = false;
-
 
-
 
46
 
48
        $this->hasNetwork = false;
47
        $this->hasNetwork = false;
49
        $hostname = empty($_SERVER['HTTP_HOST']) ?  '' : $_SERVER['HTTP_HOST'];
48
        $hostname = empty($_SERVER['HTTP_HOST']) ?  '' : $_SERVER['HTTP_HOST'];
50
        //$hostname = str_replace('www.', '', $hostname);
49
        //$hostname = str_replace('www.', '', $hostname);
Línea 104... Línea 103...
104
    public function hasNetwork() 
103
    public function hasNetwork() 
105
    {
104
    {
106
        return $this->hasNetwork;
105
        return $this->hasNetwork;
107
    }
106
    }
Línea -... Línea 107...
-
 
107
    
-
 
108
    
-
 
109
    public function getHostname() : string 
-
 
110
    {
-
 
111
        return  $this->hostname;
Línea 108... Línea 112...
108
    
112
    }
109
 
113