AclShell Class Reference

Inheritance diagram for AclShell:

Shell Object List of all members.

Public Member Functions

 __dataVars ($type=null)
 __getParams ()
 check ()
 checkNodeType ()
 create ()
 delete ()
 deny ()
 getPath ()
 grant ()
 help ()
 inherit ()
 initdb ()
 main ()
 nodeExists ()
 setParent ()
 startup ()
 view ()

Public Attributes

 $Acl
 $args
 $dataSource = 'default'
 $tasks = array('DbConfig')

Detailed Description

Definition at line 35 of file acl.php.


Member Function Documentation

AclShell::__dataVars ( type = null  ) 

Build data parameters based on node type

Parameters:
string $type Node type (ARO/ACO)
Returns:
array Variables private

Definition at line 509 of file acl.php.

References aro, and ife().

Referenced by create(), and delete().

AclShell::__getParams (  ) 

get params for standard Acl methods

Returns:
array aro, aco, action private

Definition at line 474 of file acl.php.

References aco, aro, and ife().

AclShell::check (  ) 

Check permission for a given ARO to a given ACO.

public

Definition at line 242 of file acl.php.

References __(), and check().

AclShell::checkNodeType (  ) 

Check that first argument specifies a valid Node type (ARO/ACO)

public

Definition at line 439 of file acl.php.

References __(), aco, aro, create(), and error().

Referenced by create(), and delete().

AclShell::create (  ) 

Creates an ARO/ACO node

public

Definition at line 130 of file acl.php.

References __(), __dataVars(), Shell::_checkArgs(), a(), checkNodeType(), Shell::err(), Shell::error(), Set::extract(), and Shell::out().

AclShell::delete (  ) 

Delete an ARO/ACO node.

public

Definition at line 187 of file acl.php.

References __dataVars(), Shell::_checkArgs(), and checkNodeType().

AclShell::deny (  ) 

Deny access for an ARO to an ACO.

public

Definition at line 272 of file acl.php.

References __(), and deny.

AclShell::getPath (  ) 

Get path to specified ARO/ACO node.

public

Definition at line 224 of file acl.php.

References $id, and ife().

AclShell::grant (  ) 

Grant permission for a given ARO to a given ACO.

public

Definition at line 257 of file acl.php.

References __().

AclShell::help (  ) 

Show help screen.

public

Reimplemented from Shell.

Definition at line 362 of file acl.php.

References __(), check(), create(), deny, and low().

Referenced by startup().

AclShell::inherit (  ) 

Set an ARO to inhermit permission to an ACO.

public

Definition at line 287 of file acl.php.

References __().

AclShell::initdb (  ) 

Initialize ACL database.

public

Definition at line 353 of file acl.php.

References create().

Referenced by startup().

AclShell::main (  ) 

Override main() for help message hook

public

Definition at line 109 of file acl.php.

References $out, __(), and Shell::out().

AclShell::nodeExists (  ) 

Checks that given node exists

Parameters:
string $type Node type (ARO/ACO)
integer $id Node id
Returns:
boolean Success public

Definition at line 455 of file acl.php.

References ife().

AclShell::setParent (  ) 

Set parent for an ARO/ACO node.

public

Definition at line 202 of file acl.php.

AclShell::startup (  ) 

Override startup of the Shell

public

Reimplemented from Shell.

Definition at line 69 of file acl.php.

References $out, __(), Object::_stop(), config(), Shell::err(), help(), initdb(), Shell::out(), params(), and Configure::read().

AclShell::view (  ) 

Show a specific ARO/ACO node.

public

Definition at line 302 of file acl.php.

References ife().


Member Data Documentation

AclShell::$Acl

Definition at line 42 of file acl.php.

AclShell::$args

Reimplemented from Shell.

Definition at line 49 of file acl.php.

AclShell::$dataSource = 'default'

Definition at line 56 of file acl.php.

AclShell::$tasks = array('DbConfig')

Reimplemented from Shell.

Definition at line 63 of file acl.php.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 00:30:55 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7