Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5765 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5765 Rev 6803
Línea 30... Línea 30...
30
     */
30
     */
31
    protected $network;
31
    protected $network;
Línea 32... Línea 32...
32
 
32
 
-
 
33
    
-
 
34
    /**
-
 
35
     * 
-
 
36
     * @var string
-
 
37
     */
-
 
38
    protected $hostname;
33
    
39
    
34
    /**
40
    /**
35
     *
41
     *
36
     * @param AdapterInterface $adapter
42
     * @param AdapterInterface $adapter
37
     */
43
     */
38
    public function __construct($adapter) 
-
 
-
 
44
    public function __construct($adapter) 
-
 
45
    {
39
    {
46
        $this->mainHostnameInUse = false;
40
        
47
        $this->alternativeHostnameInUse = false;
41
        $this->hasNetwork = false;
48
        $this->hasNetwork = false;
Línea 47... Línea 54...
47
        $networkMapper = NetworkMapper::getInstance($adapter);
54
        $networkMapper = NetworkMapper::getInstance($adapter);
48
        $this->network = $networkMapper->fetchOneByHostnameForFrontend($hostname);
55
        $this->network = $networkMapper->fetchOneByHostnameForFrontend($hostname);
Línea 49... Línea 56...
49
 
56
 
-
 
57
        
-
 
58
        if($this->network) {
50
        
59
            
51
        if($this->network) {
60
            $this->hostname = $this->network->main_hostname == $hostname ?  $this->network->main_hostname : $this->network->alternative_hostname;
Línea 52... Línea 61...
52
            $this->hasNetwork = true;
61
            $this->hasNetwork = true;
-
 
62
        }
-
 
63
        
Línea 53... Línea 64...
53
        }
64
    }
54
        
65
    
55
    }
66