Show
Ignore:
Timestamp:
09/17/05 14:46:30 (8 years ago)
Author:
fproulx
Message:

2005-09-17 Francois Proulx <francois.proulx@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Authenticator.php

    r745 r759  
    2424 */ 
    2525 
     26require_once BASEPATH.'classes/Network.php'; 
     27 
    2628/** Abstract class to represent an authentication source */ 
    2729abstract class Authenticator 
    2830{ 
    29         private $mAccountOrigin; 
     31        private $mNetwork; 
    3032 
    31         function __construct($account_orgin) 
     33        function __construct($network_id) 
    3234        { 
    33                 $this->mAccountOrigin = $account_orgin; 
     35                $this->mNetwork = Network::getObject($network_id); 
    3436        } 
    3537 
    36         public function getAccountOrigin() 
     38        public function getNetwork() 
    3739        { 
    38                 return $this->mAccountOrigin; 
     40                return $this->mNetwork; 
    3941        } 
    4042