root

Changeset 766

Show
Ignore:
Timestamp:
03/09/10 01:49:05 (5 months ago)
Author:
wbond
Message:

Fixed ticket #363 - added fAuthorization::getLoginPage()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fAuthorization.php

    r721 r766 Hide Line Numbers
    33 * Allows defining and checking user authentication via ACLs, authorization levels or a simple logged in/not logged in scheme 
    44 *  
    5  * @copyright  Copyright (c) 2007-2009 Will Bond 
     5 * @copyright  Copyright (c) 2007-2010 Will Bond 
    66 * @author     Will Bond [wb] <will@flourishlib.com> 
    77 * @license    http://flourishlib.com/license 
     
    1010 * @link       http://flourishlib.com/fAuthorization 
    1111 *  
    12  * @version    1.0.0b4 
     12 * @version    1.0.0b5 
     13 * @changes    1.0.0b5  Added ::getLoginPage() [wb, 2010-03-09] 
    1314 * @changes    1.0.0b4  Updated class to use new fSession API [wb, 2009-10-23] 
    1415 * @changes    1.0.0b3  Updated class to use new fSession API [wb, 2009-05-08] 
     
    2526    const checkLoggedIn    = 'fAuthorization::checkLoggedIn'; 
    2627    const destroyUserInfo  = 'fAuthorization::destroyUserInfo'; 
     28    const getLoginPage     = 'fAuthorization::getLoginPage'; 
    2729    const getRequestedURL  = 'fAuthorization::getRequestedURL'; 
    2830    const getUserACLs      = 'fAuthorization::getUserACLs'; 
     
    237239     
    238240    /** 
     241     * Returns the login page set via ::setLoginPage() 
     242     *  
     243     * @return string  The login page users are redirected to if they don't have the required authorization 
     244     */ 
     245    static public function getLoginPage() 
     246    { 
     247        return self::$login_page; 
     248    } 
     249     
     250    /** 
    239251     * Returns the URL requested before the user was redirected to the login page 
    240252     *  
     
    507519 
    508520/** 
    509  * Copyright (c) 2007-2009 Will Bond <will@flourishlib.com> 
     521 * Copyright (c) 2007-2010 Will Bond <will@flourishlib.com> 
    510522 *  
    511523 * Permission is hereby granted, free of charge, to any person obtaining a copy