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
*
* CakePHP : Rapid Development Framework < http :// www . cakephp . org />
2006-01-20 07:46:14 +00:00
* Copyright ( c ) 2006 , Cake Software Foundation , Inc .
2005-12-23 21:57:26 +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
2006-01-20 07:46:14 +00:00
* @ copyright Copyright ( c ) 2006 , Cake Software Foundation , Inc .
2005-12-23 21:57:26 +00:00
* @ link http :// www . cakefoundation . org / projects / info / cakephp CakePHP Project
2005-12-22 01:07:28 +00:00
* @ package cake
* @ subpackage cake . cake . libs . controller . components
* @ since CakePHP v 0.10 . 0.1232
* @ version $Revision $
* @ modifiedby $LastChangedBy $
2005-07-21 04:40:30 +00:00
* @ lastmodified $Date $
2005-12-22 01:07:28 +00:00
* @ 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
*
2005-10-03 04:43:55 +00:00
* @ package cake
2005-10-09 01:56:21 +00:00
* @ subpackage cake . cake . libs . controller . components
* @ since CakePHP v 0.10 . 0.1076
2005-07-21 04:40:30 +00:00
*
*/
2005-08-21 06:49:02 +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-02-18 23:42:21 +00:00
function AclBase ()
{
//No instantiations or constructor calls (even statically)
2005-10-03 04:43:55 +00:00
if ( strcasecmp ( get_class ( $this ), " AclBase " ) == 0 || ! is_subclass_of ( $this , " AclBase " ))
{
2006-01-12 02:10:47 +00:00
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 );
2005-10-03 04:43:55 +00:00
return NULL ;
}
2005-11-05 04:08:14 +00:00
2006-02-18 23:42:21 +00:00
}
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-02-18 23:42:21 +00:00
function check ( $aro , $aco , $action = " * " ) {}
2005-11-05 04:08:14 +00:00
}
2006-01-12 02:10:47 +00:00
?>