Changeset 455

Show
Ignore:
Timestamp:
06/15/07 11:34:34 (2 years ago)
Author:
laurentj
Message:

completed documentation on jAuth and jAuthUser is now an abstract class since it shouldn't be used directly by developers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix-plugins/auth/auth.plugin.php

    r386 r455  
    5151        if (! isset ($_SESSION['JELIX_USER'])){ 
    5252            $notLogged = true; 
    53             $_SESSION['JELIX_USER'] = new jAuthUser(); 
     53            $_SESSION['JELIX_USER'] = new jDummyAuthUser(); 
    5454        }else{ 
    5555            $notLogged = ! jAuth::isConnected(); 
  • trunk/lib/jelix-plugins/auth/auth.plugin.php

    r386 r455  
    5151        if (! isset ($_SESSION['JELIX_USER'])){ 
    5252            $notLogged = true; 
    53             $_SESSION['JELIX_USER'] = new jAuthUser(); 
     53            $_SESSION['JELIX_USER'] = new jDummyAuthUser(); 
    5454        }else{ 
    5555            $notLogged = ! jAuth::isConnected(); 
  • trunk/lib/jelix/auth/jAuth.class.php

    r402 r455  
    55* @author     Laurent Jouanneau 
    66* @contributor 
    7 * @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau 
     7* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    88* Classe orginellement issue d'une branche experimentale du 
    99* framework Copix 2.3dev. http://www.copix.org (jAuth) 
     
    3333     * @param string $login the user login 
    3434     * @param string $password the user password 
    35      * @return jAuthUser|object the returned object depends on the driver 
     35     * @return object the returned object depends on the driver 
    3636     */ 
    3737    public function createUserObject($login, $password); 
     
    4242    * It create the user in a database for example 
    4343    * should be call after a call of createUser and after setting some of its properties... 
    44     * @param jAuthUser|object $user the user data container 
     44    * @param object $user the user data container 
    4545    */ 
    4646    public function saveNewUser($user); 
     
    5555    * save updated datas of a user 
    5656    * warning : should not save the password ! 
    57     * @param jAuthUser|object $user the user data container 
     57    * @param object $user the user data container 
    5858    */ 
    5959    public function updateUser($user); 
     
    6262     * return user data corresponding to the given login 
    6363     * @param string $login the login of the user 
    64      * @return jAuthUser|object the user data container 
     64     * @return object the user data container 
    6565     */ 
    6666    public function getUser($login); 
     
    6969     * construct the user list 
    7070     * @param string $pattern '' for all users 
    71      * @return array array of jAuthUser|object 
     71     * @return array array of user object 
    7272     */ 
    7373    public function getUserList($pattern); 
     
    8585     * @param string $login the login of the user 
    8686     * @param string $password the password to test 
    87      * @return jAuthUser|false 
     87     * @return object|false 
    8888     */ 
    8989    public function verifyPassword($login, $password); 
     
    109109            $plugin = $gJCoord->getPlugin('auth'); 
    110110            if($plugin === null){ 
    111                 trigger_error(jLocale::get('jelix~jxauth.error.plugin.missing'), E_USER_ERROR); 
    112                 return null; 
     111                throw new jException('jelix~jxauth.error.plugin.missing'); 
    113112            } 
    114113            $config = & $plugin->config; 
     
    133132 
    134133    /** 
    135      * Save a new user and send the AuthNewUser event 
    136      * @param jAuthUser $user the user data (can be an other type object, depending on the driver) 
    137      * @return jAuthUser the user (eventually, with additional datas) 
     134     * load user datas 
     135     * 
     136     * This method returns an object, generated by the driver, and which contains 
     137     * datas corresponding to the given login. This method should be called if you want 
     138     * to update datas of a user. see updateUser method. 
     139     * 
     140     * @param string $login 
     141     * @return object the user 
     142     */ 
     143    public static function getUser($login){ 
     144        $dr = self::_getDriver(); 
     145        return $dr->getUser($login); 
     146    } 
     147 
     148    /** 
     149     * Create a new user object 
     150     *  
     151     * You should call this method if you want to create a new user. It returns an object, 
     152     * representing a user. Then you should fill its properties and give it to the saveNewUser 
     153     * method. 
     154     *  
     155     * @param string $login the user login 
     156     * @param string $password the user password (not encrypted) 
     157     * @return object the returned object depends on the driver 
     158     * @since 1.0b2 
     159     */ 
     160    public static function createUserObject($login,$password){ 
     161        $dr = self::_getDriver(); 
     162        return $dr->createUserObject($login,$password); 
     163    } 
     164 
     165    /** 
     166     * Save a new user  
     167     *  
     168     * if the saving has succeed, a AuthNewUser event is sent 
     169     * The given object should have been created by calling createUserObject method : 
     170     * 
     171     * example : 
     172     *  <pre> 
     173     *   $user = jAuth::createUserObject('login','password'); 
     174     *   $user->email ='bla@foo.com'; 
     175     *   jAuth::saveNewUser($user); 
     176     *  </pre> 
     177     *  the type of $user depends of the driver, so it can have other properties. 
     178     * 
     179     * @param  object $user the user data 
     180     * @return object the user (eventually, with additional datas) 
    138181     */ 
    139182    public static function saveNewUser($user){ 
     
    146189 
    147190    /** 
     191     * update user datas 
     192     *  
     193     * It send a AuthUpdateUser event if the saving has succeed. If you want 
     194     * to change the user password, you must use jAuth::changePassword method 
     195     * instead of jAuth::updateUser method. 
     196     * 
     197     * The given object should have been created by calling getUser method. 
     198     * Example : 
     199     *  <pre> 
     200     *   $user = jAuth::getUser('login'); 
     201     *   $user->email ='bla@foo.com'; 
     202     *   jAuth::updateUser($user); 
     203     *  </pre> 
     204     *  the type of $user depends of the driver, so it can have other properties. 
     205     *  
     206     * @param object $user  user datas 
     207     */ 
     208    public static function updateUser($user){ 
     209        $dr = self::_getDriver(); 
     210        if($user = $dr->updateUser($user)){ 
     211            jEvent::notify ('AuthUpdateUser', array('user'=>$user)); 
     212        } 
     213    } 
     214 
     215    /** 
    148216     * remove a user 
    149217     * send first AuthCanRemoveUser event, then if ok, send AuthRemoveUser 
    150      * and then remove the user 
     218     * and then remove the user. 
    151219     * @param string $login the user login 
    152220     * @return boolean true if ok 
     
    165233 
    166234    /** 
    167      * save user datas and send AuthUpdateUser event 
    168      * @param jAuthUser $user 
    169      */ 
    170     public static function updateUser(&$user){ 
    171         $dr = self::_getDriver(); 
    172         if($user = $dr->updateUser($user)){ 
    173             jEvent::notify ('AuthUpdateUser', array('user'=>$user)); 
    174         } 
    175     } 
    176  
    177  
    178     /** 
    179      * load user data 
    180      * @param string $login 
    181      * @return jAuthUser the user 
    182      */ 
    183     public static function getUser($login){ 
    184         $dr = self::_getDriver(); 
    185         return $dr->getUser($login); 
    186     } 
    187  
    188     /** 
    189      * deprecated method. see CreateUserObject 
    190      * @param string $login the user login 
    191      * @param string $password the user password 
    192      * @return jAuthUser|object the returned object depends on the driver 
    193      * @deprecated 
    194      */ 
    195     public static function createUser($login,$password){ 
    196         return self::createUserObject($login,$password); 
    197     } 
    198  
    199     /** 
    200      * Create a new user object 
    201      * @param string $login the user login 
    202      * @param string $password the user password 
    203      * @return jAuthUser|object the returned object depends on the driver 
    204      * @since 1.0b2 
    205      */ 
    206     public static function createUserObject($login,$password){ 
    207         $dr = self::_getDriver(); 
    208         return $dr->createUserObject($login,$password); 
    209     } 
    210  
    211  
    212     /** 
    213235     * construct the user list 
    214236     * @param string $pattern '' for all users 
    215      * @return array array of jAuthUser|object 
     237     * @return array array of object 
    216238     */ 
    217239    public static function getUserList($pattern = '%'){ 
     
    224246     * 
    225247     * @param string $login the login of the user 
    226      * @param string $newpassword 
     248     * @param string $newpassword the new password (not encrypted) 
     249     * @return boolean true if the change succeed 
    227250     */ 
    228251    public static function changePassword($login, $newpassword){ 
     
    234257     * verify that the password correspond to the login 
    235258     * @param string $login the login of the user 
    236      * @param string $password the password to test 
    237      * @return jAuthUser|false 
     259     * @param string $password the password to test (not encrypted) 
     260     * @return object|false  if ok, returns the user as object 
    238261     */ 
    239262    public static function verifyPassword($login, $password){ 
     
    245268     * authentificate a user, and create a user in the php session 
    246269     * @param string $login the login of the user 
    247      * @param string $password the password to test 
     270     * @param string $password the password to test (not encrypted) 
    248271     * @return boolean true if authentification is ok 
    249272     */ 
     
    272295    public static function logout(){ 
    273296        jEvent::notify ('AuthLogout', array('login'=>$_SESSION['JELIX_USER']->login)); 
    274         $_SESSION['JELIX_USER'] = new jAuthUser(); 
     297        $_SESSION['JELIX_USER'] = new jDummyAuthUser(); 
    275298        jAcl::clearCache(); 
    276299    } 
     
    286309   /** 
    287310    * return the user stored in the php session 
    288     * @return jAuthUser the user datas 
     311    * @return object the user datas 
    289312    */ 
    290313    public static function getUserSession (){ 
    291314      if (! isset ($_SESSION['JELIX_USER'])){ 
    292             $_SESSION['JELIX_USER'] = new jAuthUser(); 
     315            $_SESSION['JELIX_USER'] = new jDummyAuthUser(); 
    293316      } 
    294317      return $_SESSION['JELIX_USER']; 
    295318    } 
    296319 
     320    /** 
     321     * deprecated method. see CreateUserObject 
     322     * @param string $login the user login 
     323     * @param string $password the user password 
     324     * @return object the returned object depends on the driver 
     325     * @deprecated 
     326     */ 
     327    public static function createUser($login,$password){ 
     328        return self::createUserObject($login,$password); 
     329    } 
     330 
    297331} 
    298332?> 
  • trunk/lib/jelix/auth/jAuth.class.php

    r402 r455  
    55* @author     Laurent Jouanneau 
    66* @contributor 
    7 * @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau 
     7* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    88* Classe orginellement issue d'une branche experimentale du 
    99* framework Copix 2.3dev. http://www.copix.org (jAuth) 
     
    3333     * @param string $login the user login 
    3434     * @param string $password the user password 
    35      * @return jAuthUser|object the returned object depends on the driver 
     35     * @return object the returned object depends on the driver 
    3636     */ 
    3737    public function createUserObject($login, $password); 
     
    4242    * It create the user in a database for example 
    4343    * should be call after a call of createUser and after setting some of its properties... 
    44     * @param jAuthUser|object $user the user data container 
     44    * @param object $user the user data container 
    4545    */ 
    4646    public function saveNewUser($user); 
     
    5555    * save updated datas of a user 
    5656    * warning : should not save the password ! 
    57     * @param jAuthUser|object $user the user data container 
     57    * @param object $user the user data container 
    5858    */ 
    5959    public function updateUser($user); 
     
    6262     * return user data corresponding to the given login 
    6363     * @param string $login the login of the user 
    64      * @return jAuthUser|object the user data container 
     64     * @return object the user data container 
    6565     */ 
    6666    public function getUser($login); 
     
    6969     * construct the user list 
    7070     * @param string $pattern '' for all users 
    71      * @return array array of jAuthUser|object 
     71     * @return array array of user object 
    7272     */ 
    7373    public function getUserList($pattern); 
     
    8585     * @param string $login the login of the user 
    8686     * @param string $password the password to test 
    87      * @return jAuthUser|false 
     87     * @return object|false 
    8888     */ 
    8989    public function verifyPassword($login, $password); 
     
    109109            $plugin = $gJCoord->getPlugin('auth'); 
    110110            if($plugin === null){ 
    111                 trigger_error(jLocale::get('jelix~jxauth.error.plugin.missing'), E_USER_ERROR); 
    112                 return null; 
     111                throw new jException('jelix~jxauth.error.plugin.missing'); 
    113112            } 
    114113            $config = & $plugin->config; 
     
    133132 
    134133    /** 
    135      * Save a new user and send the AuthNewUser event 
    136      * @param jAuthUser $user the user data (can be an other type object, depending on the driver) 
    137      * @return jAuthUser the user (eventually, with additional datas) 
     134     * load user datas 
     135     * 
     136     * This method returns an object, generated by the driver, and which contains 
     137     * datas corresponding to the given login. This method should be called if you want 
     138     * to update datas of a user. see updateUser method. 
     139     * 
     140     * @param string $login 
     141     * @return object the user 
     142     */ 
     143    public static function getUser($login){ 
     144        $dr = self::_getDriver(); 
     145        return $dr->getUser($login); 
     146    } 
     147 
     148    /** 
     149     * Create a new user object 
     150     *  
     151     * You should call this method if you want to create a new user. It returns an object, 
     152     * representing a user. Then you should fill its properties and give it to the saveNewUser 
     153     * method. 
     154     *  
     155     * @param string $login the user login 
     156     * @param string $password the user password (not encrypted) 
     157     * @return object the returned object depends on the driver 
     158     * @since 1.0b2 
     159     */ 
     160    public static function createUserObject($login,$password){ 
     161        $dr = self::_getDriver(); 
     162        return $dr->createUserObject($login,$password); 
     163    } 
     164 
     165    /** 
     166     * Save a new user  
     167     *  
     168     * if the saving has succeed, a AuthNewUser event is sent 
     169     * The given object should have been created by calling createUserObject method : 
     170     * 
     171     * example : 
     172     *  <pre> 
     173     *   $user = jAuth::createUserObject('login','password'); 
     174     *   $user->email ='bla@foo.com'; 
     175     *   jAuth::saveNewUser($user); 
     176     *  </pre> 
     177     *  the type of $user depends of the driver, so it can have other properties. 
     178     * 
     179     * @param  object $user the user data 
     180     * @return object the user (eventually, with additional datas) 
    138181     */ 
    139182    public static function saveNewUser($user){ 
     
    146189 
    147190    /** 
     191     * update user datas 
     192     *  
     193     * It send a AuthUpdateUser event if the saving has succeed. If you want 
     194     * to change the user password, you must use jAuth::changePassword method 
     195     * instead of jAuth::updateUser method. 
     196     * 
     197     * The given object should have been created by calling getUser method. 
     198     * Example : 
     199     *  <pre> 
     200     *   $user = jAuth::getUser('login'); 
     201     *   $user->email ='bla@foo.com'; 
     202     *   jAuth::updateUser($user); 
     203     *  </pre> 
     204     *  the type of $user depends of the driver, so it can have other properties. 
     205     *  
     206     * @param object $user  user datas 
     207     */ 
     208    public static function updateUser($user){ 
     209        $dr = self::_getDriver(); 
     210        if($user = $dr->updateUser($user)){ 
     211            jEvent::notify ('AuthUpdateUser', array('user'=>$user)); 
     212        } 
     213    } 
     214 
     215    /** 
    148216     * remove a user 
    149217     * send first AuthCanRemoveUser event, then if ok, send AuthRemoveUser 
    150      * and then remove the user 
     218     * and then remove the user. 
    151219     * @param string $login the user login 
    152220     * @return boolean true if ok 
     
    165233 
    166234    /** 
    167      * save user datas and send AuthUpdateUser event 
    168      * @param jAuthUser $user 
    169      */ 
    170     public static function updateUser(&$user){ 
    171         $dr = self::_getDriver(); 
    172         if($user = $dr->updateUser($user)){ 
    173             jEvent::notify ('AuthUpdateUser', array('user'=>$user)); 
    174         } 
    175     } 
    176  
    177  
    178     /** 
    179      * load user data 
    180      * @param string $login 
    181      * @return jAuthUser the user 
    182      */ 
    183     public static function getUser($login){ 
    184         $dr = self::_getDriver(); 
    185         return $dr->getUser($login); 
    186     } 
    187  
    188     /** 
    189      * deprecated method. see CreateUserObject 
    190      * @param string $login the user login 
    191      * @param string $password the user password 
    192      * @return jAuthUser|object the returned object depends on the driver 
    193      * @deprecated 
    194      */ 
    195     public static function createUser($login,$password){ 
    196         return self::createUserObject($login,$password); 
    197     } 
    198  
    199     /** 
    200      * Create a new user object 
    201      * @param string $login the user login 
    202      * @param string $password the user password 
    203      * @return jAuthUser|object the returned object depends on the driver 
    204      * @since 1.0b2 
    205      */ 
    206     public static function createUserObject($login,$password){ 
    207         $dr = self::_getDriver(); 
    208         return $dr->createUserObject($login,$password); 
    209     } 
    210  
    211  
    212     /** 
    213235     * construct the user list 
    214236     * @param string $pattern '' for all users 
    215      * @return array array of jAuthUser|object 
     237     * @return array array of object 
    216238     */ 
    217239    public static function getUserList($pattern = '%'){ 
     
    224246     * 
    225247     * @param string $login the login of the user 
    226      * @param string $newpassword 
     248     * @param string $newpassword the new password (not encrypted) 
     249     * @return boolean true if the change succeed 
    227250     */ 
    228251    public static function changePassword($login, $newpassword){ 
     
    234257     * verify that the password correspond to the login 
    235258     * @param string $login the login of the user 
    236      * @param string $password the password to test 
    237      * @return jAuthUser|false 
     259     * @param string $password the password to test (not encrypted) 
     260     * @return object|false  if ok, returns the user as object 
    238261     */ 
    239262    public static function verifyPassword($login, $password){ 
     
    245268     * authentificate a user, and create a user in the php session 
    246269     * @param string $login the login of the user 
    247      * @param string $password the password to test 
     270     * @param string $password the password to test (not encrypted) 
    248271     * @return boolean true if authentification is ok 
    249272     */ 
     
    272295    public static function logout(){ 
    273296        jEvent::notify ('AuthLogout', array('login'=>$_SESSION['JELIX_USER']->login)); 
    274         $_SESSION['JELIX_USER'] = new jAuthUser(); 
     297        $_SESSION['JELIX_USER'] = new jDummyAuthUser(); 
    275298        jAcl::clearCache(); 
    276299    } 
     
    286309   /** 
    287310    * return the user stored in the php session 
    288     * @return jAuthUser the user datas 
     311    * @return object the user datas 
    289312    */ 
    290313    public static function getUserSession (){ 
    291314      if (! isset ($_SESSION['JELIX_USER'])){ 
    292             $_SESSION['JELIX_USER'] = new jAuthUser(); 
     315            $_SESSION['JELIX_USER'] = new jDummyAuthUser(); 
    293316      } 
    294317      return $_SESSION['JELIX_USER']; 
    295318    } 
    296319 
     320    /** 
     321     * deprecated method. see CreateUserObject 
     322     * @param string $login the user login 
     323     * @param string $password the user password 
     324     * @return object the returned object depends on the driver 
     325     * @deprecated 
     326     */ 
     327    public static function createUser($login,$password){ 
     328        return self::createUserObject($login,$password); 
     329    } 
     330 
    297331} 
    298332?> 
  • trunk/lib/jelix/auth/jAuthDriverLDS.class.php

    r360 r455  
    44* @subpackage auth 
    55* @author     Nicolas JEUDY 
    6 * @contributor 
     6* @contributor Laurent Jouanneau 
    77* @copyright  2006 Nicolas JEUDY 
     8* @copyright  2007 Laurent Jouanneau 
    89* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
    910*/ 
     11 
     12 
     13/** 
     14 * object which represent a user 
     15 * 
     16 * @package    jelix 
     17 * @subpackage auth 
     18 */ 
     19class jAuthUserLDS extends jAuthUser { 
     20} 
     21 
     22 
     23 
    1024 
    1125/** 
     
    5670        $login = '*'.$login.'*'; 
    5771        $paramsArr = $this->xmlCall('base.getUsersLdap',$login); 
    58         $user = new jAuthUser(); 
     72        $user = new jAuthUserLDS(); 
    5973        $user->login = $paramsArr['uid'][0]; 
    6074        $user->password = $paramsArr['userPassword'][0]; 
     
    6377 
    6478    public function createUserObject($login,$password){ 
    65         $user = new jAuthUser(); 
     79        $user = new jAuthUserLDS(); 
    6680        $user->login = $login; 
    6781        $user->password = $password; 
     
    7387        $userslist = array(); 
    7488        foreach ($users as $userldap) { 
    75             $user = new jAuthUser(); 
     89            $user = new jAuthUserLDS(); 
    7690            $user->login = $userldap['uid']; 
    7791            $userslist[] = $user; 
     
    91105        $ret= $this->xmlCall("base.ldapAuth",$param); 
    92106        if ( $ret == '1') { 
    93             $user = new jAuthUser(); 
     107            $user = new jAuthUserLDS(); 
    94108            $user->login = $login; 
    95109            $user->password = $password; 
  • trunk/lib/jelix/auth/jAuthDriverLDS.class.php

    r360 r455  
    44* @subpackage auth 
    55* @author     Nicolas JEUDY 
    6 * @contributor 
     6* @contributor Laurent Jouanneau 
    77* @copyright  2006 Nicolas JEUDY 
     8* @copyright  2007 Laurent Jouanneau 
    89* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
    910*/ 
     11 
     12 
     13/** 
     14 * object which represent a user 
     15 * 
     16 * @package    jelix 
     17 * @subpackage auth 
     18 */ 
     19class jAuthUserLDS extends jAuthUser { 
     20} 
     21 
     22 
     23 
    1024 
    1125/** 
     
    5670        $login = '*'.$login.'*'; 
    5771        $paramsArr = $this->xmlCall('base.getUsersLdap',$login); 
    58         $user = new jAuthUser(); 
     72        $user = new jAuthUserLDS(); 
    5973        $user->login = $paramsArr['uid'][0]; 
    6074        $user->password = $paramsArr['userPassword'][0]; 
     
    6377 
    6478    public function createUserObject($login,$password){ 
    65         $user = new jAuthUser(); 
     79        $user = new jAuthUserLDS(); 
    6680        $user->login = $login; 
    6781        $user->password = $password; 
     
    7387        $userslist = array(); 
    7488        foreach ($users as $userldap) { 
    75             $user = new jAuthUser(); 
     89            $user = new jAuthUserLDS(); 
    7690            $user->login = $userldap['uid']; 
    7791            $userslist[] = $user; 
     
    91105        $ret= $this->xmlCall("base.ldapAuth",$param); 
    92106        if ( $ret == '1') { 
    93             $user = new jAuthUser(); 
     107            $user = new jAuthUserLDS(); 
    94108            $user->login = $login; 
    95109            $user->password = $password; 
  • trunk/lib/jelix/auth/jAuthUser.class.php

    r334 r455  
    55* @author     Laurent Jouanneau 
    66* @contributor Loic Mathaud 
    7 * @copyright  2006 Laurent Jouanneau 
     7* @copyright  2006-2007 Laurent Jouanneau 
    88* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
    99*/ 
     
    1717 * @subpackage auth 
    1818 */ 
    19 class jAuthUser { 
     19abstract class jAuthUser { 
    2020    public $login = ''; 
    2121    public $email =''; 
    2222} 
    2323 
     24 
     25/** 
     26 * internal use 
     27 * @package    jelix 
     28 * @subpackage auth 
     29 */ 
     30class jDummyAuthUser extends  jAuthUser { 
     31} 
     32 
     33 
    2434?> 
  • trunk/lib/jelix/auth/jAuthUser.class.php

    r334 r455  
    55* @author     Laurent Jouanneau 
    66* @contributor Loic Mathaud 
    7 * @copyright  2006 Laurent Jouanneau 
     7* @copyright  2006-2007 Laurent Jouanneau 
    88* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
    99*/ 
     
    1717 * @subpackage auth 
    1818 */ 
    19 class jAuthUser { 
     19abstract class jAuthUser { 
    2020    public $login = ''; 
    2121    public $email =''; 
    2222} 
    2323 
     24 
     25/** 
     26 * internal use 
     27 * @package    jelix 
     28 * @subpackage auth 
     29 */ 
     30class jDummyAuthUser extends  jAuthUser { 
     31} 
     32 
     33 
    2434?> 
  • trunk/lib/jelix/core/response/jResponseJsonrpc.class.php

    r454 r455  
    1616* @subpackage core_response 
    1717* @see jResponse 
    18 * @see http://json-rpc.org/specs.xhtml 
     18* @see http://json-rpc.org/wiki/specification 
    1919*/ 
    2020 
  • trunk/lib/jelix/core/response/jResponseJsonrpc.class.php

    r454 r455  
    1616* @subpackage core_response 
    1717* @see jResponse 
    18 * @see http://json-rpc.org/specs.xhtml 
     18* @see http://json-rpc.org/wiki/specification 
    1919*/ 
    2020 
  • trunk/lib/jelix/core/response/jResponseXul.class.php

    r454 r455  
    7777     */ 
    7878    public $bodyTpl = ''; 
    79  
    80     /** 
    81      * selector of the template to use for errors 
    82      * @var string 
    83      */ 
    84     public $bodyErrorTpl = ''; 
    8579 
    8680    /** 
  • trunk/lib/jelix/core/response/jResponseXul.class.php

    r454 r455  
    7777     */ 
    7878    public $bodyTpl = ''; 
    79  
    80     /** 
    81      * selector of the template to use for errors 
    82      * @var string 
    83      */ 
    84     public $bodyErrorTpl = ''; 
    8579 
    8680    /** 
Download in other formats: Unified Diff Zip Archive