[ Index ] |
|
Code source de CakePHP 1.1.13.4450 |
1 <?php 2 /* SVN FILE: $Id: acl_base.php 4409 2007-02-02 13:20:59Z phpnut $ */ 3 /** 4 * Access Control List abstract class. 5 * 6 * Long description for file 7 * 8 * PHP versions 4 and 5 9 * 10 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 11 * Copyright 2005-2007, Cake Software Foundation, Inc. 12 * 1785 E. Sahara Avenue, Suite 490-204 13 * Las Vegas, Nevada 89104 14 * 15 * Licensed under The MIT License 16 * Redistributions of files must retain the above copyright notice. 17 * 18 * @filesource 19 * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. 20 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 21 * @package cake 22 * @subpackage cake.cake.libs.controller.components 23 * @since CakePHP(tm) v 0.10.0.1232 24 * @version $Revision: 4409 $ 25 * @modifiedby $LastChangedBy: phpnut $ 26 * @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $ 27 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 28 */ 29 /** 30 * Access Control List abstract class. Not to be instantiated. 31 * Subclasses of this class are used by AclComponent to perform ACL checks in Cake. 32 * 33 * @package cake 34 * @subpackage cake.cake.libs.controller.components 35 * @abstract 36 */ 37 class AclBase{ 38 /** 39 * This class should never be instantiated, just subclassed. 40 * 41 * No instantiations or constructor calls (even statically) 42 * 43 * @return AclBase 44 * @abstract 45 */ 46 function AclBase() { 47 if (strcasecmp(get_class($this), "AclBase") == 0 || !is_subclass_of($this, "AclBase")) { 48 trigger_error("[acl_base] The AclBase class constructor has been called, or the class was instantiated. This class must remain abstract. Please refer to the Cake docs for ACL configuration.", E_USER_ERROR); 49 return null; 50 } 51 } 52 /** 53 * Empty method to be overridden in subclasses 54 * 55 * @param string $aro 56 * @param string $aco 57 * @param string $action 58 * @abstract 59 */ 60 function check($aro, $aco, $action = "*") { 61 } 62 } 63 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 19:27:47 2007 | par Balluche grâce à PHPXref 0.7 |