getUserPassFromAuth() static public méthode

Gets the username and password from the authorization string.
static public getUserPassFromAuth ( ) : [String]
Résultat [String]
 /**
  * Constructs a new base controller.
  */
 public function __construct()
 {
     $this->lrs = Helpers::getLrsFromAuth();
     list($username, $password) = Helpers::getUserPassFromAuth();
     $this->client = Helpers::getClient($username, $password);
 }
 /**
  * Gets the current LRS from the Authorization header.
  * @return \Lrs
  */
 static function getLrsFromAuth()
 {
     list($username, $password) = Helpers::getUserPassFromAuth();
     return Helpers::getLrsFromUserPass($username, $password);
 }