Adding deprecation flags.

This commit is contained in:
mark_story 2010-09-08 22:49:00 -04:00
parent 12338a0c16
commit d5e906f086

View file

@ -160,6 +160,7 @@ class AclComponent extends Component {
* @param string $aco ACO The controlled object identifier. * @param string $aco ACO The controlled object identifier.
* @param string $action Action (defaults to *) * @param string $action Action (defaults to *)
* @return boolean Success * @return boolean Success
* @deprecated
*/ */
public function grant($aro, $aco, $action = "*") { public function grant($aro, $aco, $action = "*") {
trigger_error(__('AclComponent::grant() is deprecated, use allow() instead'), E_USER_WARNING); trigger_error(__('AclComponent::grant() is deprecated, use allow() instead'), E_USER_WARNING);
@ -173,6 +174,7 @@ class AclComponent extends Component {
* @param string $aco ACO The controlled object identifier. * @param string $aco ACO The controlled object identifier.
* @param string $action Action (defaults to *) * @param string $action Action (defaults to *)
* @return boolean Success * @return boolean Success
* @deprecated
*/ */
public function revoke($aro, $aco, $action = "*") { public function revoke($aro, $aco, $action = "*") {
trigger_error(__('AclComponent::revoke() is deprecated, use deny() instead'), E_USER_WARNING); trigger_error(__('AclComponent::revoke() is deprecated, use deny() instead'), E_USER_WARNING);