Changeset 1200

Show
Ignore:
Timestamp:
12/02/08 17:47:25 (1 month ago)
Author:
laurentj
Message:

Added jAuth::getDriverParam to retrieve a specific parameter from the configuration of a driver

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/auth/jAuth.class.php

    r1079 r1200  
    5757 
    5858    /** 
    59      * load the auth driver 
     59     * return the auth driver 
    6060     * @return jIAuthDriver 
    6161     */ 
     
    7979 
    8080    /** 
     81     * return the value of a parameter of the configuration of the current driver 
     82     * @param string $paramName 
     83     * @return string the value. null if it doesn't exist 
     84     */ 
     85    public static function getDriverParam($paramName) { 
     86        $config = self::_getConfig(); 
     87        $config = $config[$config['driver']]; 
     88        if(isset($config[$paramName])) 
     89            return $config[$paramName]; 
     90        else 
     91            return null; 
     92    } 
     93 
     94    /** 
    8195     * load user data 
    8296     * 
Download in other formats: Unified Diff Zip Archive