2005-07-21 04:40:30 +00:00
< ? php
2005-12-22 01:07:28 +00:00
/* SVN FILE: $Id$ */
2005-07-21 04:40:30 +00:00
/**
2005-09-07 01:52:45 +00:00
* Access Control List abstract class .
2006-01-12 02:10:47 +00:00
*
2005-12-22 01:07:28 +00:00
* Long description for file
*
* PHP versions 4 and 5
*
2007-02-02 10:39:45 +00:00
* CakePHP ( tm ) : Rapid Development Framework < http :// www . cakephp . org />
* Copyright 2005 - 2007 , Cake Software Foundation , Inc .
2006-05-26 05:29:17 +00:00
* 1785 E . Sahara Avenue , Suite 490 - 204
* Las Vegas , Nevada 89104
2006-01-12 02:10:47 +00:00
*
2005-12-22 01:07:28 +00:00
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice .
*
2006-01-12 02:10:47 +00:00
* @ filesource
2007-02-02 10:39:45 +00:00
* @ copyright Copyright 2005 - 2007 , Cake Software Foundation , Inc .
* @ link http :// www . cakefoundation . org / projects / info / cakephp CakePHP ( tm ) Project
2006-05-26 05:29:17 +00:00
* @ package cake
* @ subpackage cake . cake . libs . controller . components
2007-02-02 10:39:45 +00:00
* @ since CakePHP ( tm ) v 0.10 . 0.1232
2006-05-26 05:29:17 +00:00
* @ version $Revision $
* @ modifiedby $LastChangedBy $
* @ lastmodified $Date $
* @ license http :// www . opensource . org / licenses / mit - license . php The MIT License
2005-07-21 04:40:30 +00:00
*/
2005-12-22 01:07:28 +00:00
/**
2006-01-12 02:10:47 +00:00
* Access Control List abstract class . Not to be instantiated .
2005-10-09 01:56:21 +00:00
* Subclasses of this class are used by AclComponent to perform ACL checks in Cake .
2005-07-21 04:40:30 +00:00
*
2006-05-26 05:29:17 +00:00
* @ package cake
* @ subpackage cake . cake . libs . controller . components
2005-07-21 04:40:30 +00:00
*/
2006-05-26 05:29:17 +00:00
class AclBase {
2005-11-05 04:08:14 +00:00
2005-12-22 01:07:28 +00:00
/**
2006-02-07 02:19:53 +00:00
* This class should never be instantiated , just subclassed .
2005-12-22 01:07:28 +00:00
*
* @ return AclBase
*/
2006-05-26 05:29:17 +00:00
function AclBase () {
//No instantiations or constructor calls (even statically)
if ( strcasecmp ( get_class ( $this ), " AclBase " ) == 0 || ! is_subclass_of ( $this , " AclBase " )) {
trigger_error (
__ (
2006-12-22 22:49:47 +00:00
" [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. " , true ),
2006-05-26 05:29:17 +00:00
E_USER_ERROR );
return NULL ;
}
}
2005-11-05 04:08:14 +00:00
2005-12-22 01:07:28 +00:00
/**
2006-02-07 02:19:53 +00:00
* Empty method to be overridden in subclasses
2005-12-22 01:07:28 +00:00
*
* @ param unknown_type $aro
* @ param unknown_type $aco
2006-02-07 02:19:53 +00:00
* @ param string $action
2005-12-22 01:07:28 +00:00
*/
2006-05-26 05:29:17 +00:00
function check ( $aro , $aco , $action = " * " ) {
}
2005-11-05 04:08:14 +00:00
}
2006-01-12 02:10:47 +00:00
?>