Source for file lmbAbstractRoleProvider.class.php

Documentation is available at lmbAbstractRoleProvider.class.php

  1. <?php
  2. /*
  3. * Limb PHP Framework
  4. *
  5. * @link http://limb-project.com
  6. * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
  7. * @license    LGPL http://www.gnu.org/copyleft/lesser.html
  8. */
  9.  
  10. abstract class lmbAbstractRoleProvider
  11. {
  12.   protected $_role = null;
  13.  
  14.   function getRole()
  15.   {
  16.     if(is_null($this->_role))
  17.       throw new lmbAclException('Role provider must have filled _role property');
  18.     return $this->_role;
  19.   }
  20. }

Documentation generated on Tue, 06 Jan 2009 03:47:40 +0300 by phpDocumentor 1.3.2