AclCLI Class Reference

List of all members.


Public Member Functions

 AclCLI ($command, $args)
 bakeDbConfig ($driver, $connect, $host, $login, $password, $database, $prefix)
 checkArgNumber ($expectedNum, $command)
 checkNodeType ()
 create ()
 delete ()
 deny ()
 displayError ($title, $msg)
 doDbConfig ()
 getInput ($prompt, $options=null, $default=null)
 getPath ()
 grant ()
 help ()
 hr ()
 inherit ()
 initdb ()
 nodeExists ($type, $id)
 setParent ()
 stderr ($string)
 stdout ($string, $newline=true)
 upgradedb ()
 view ()

Public Attributes

 $acl
 $args
 $dataSource = 'default'
 $stderr
 $stdin
 $stdout

Detailed Description

Definition at line 119 of file acl.php.


Member Function Documentation

AclCLI::AclCLI ( command,
args 
)

Enter description here...

Parameters:
unknown_type $command
unknown_type $args
Returns:
AclCLI

Definition at line 163 of file acl.php.

References $args, and $command.

AclCLI::bakeDbConfig ( driver,
connect,
host,
login,
password,
database,
prefix 
)

Creates a database configuration file for Bake.

Parameters:
string $host
string $login
string $password
string $database

Definition at line 741 of file acl.php.

References $filename.

AclCLI::checkArgNumber ( expectedNum,
command 
)

Enter description here...

Parameters:
unknown_type $expectedNum
unknown_type $command

Definition at line 574 of file acl.php.

Referenced by create().

AclCLI::checkNodeType (  ) 

Enter description here...

Definition at line 583 of file acl.php.

References aco, and aro.

Referenced by create().

AclCLI::create (  ) 

Enter description here...

Definition at line 250 of file acl.php.

References checkArgNumber(), and checkNodeType().

AclCLI::delete (  ) 

Enter description here...

Definition at line 265 of file acl.php.

AclCLI::deny (  ) 

Enter description here...

Definition at line 331 of file acl.php.

References deny.

AclCLI::displayError ( title,
msg 
)

Enter description here...

Parameters:
unknown_type $title
unknown_type $msg

Definition at line 559 of file acl.php.

AclCLI::doDbConfig (  ) 

Database configuration setup.

Definition at line 626 of file acl.php.

References Configuration.

AclCLI::getInput ( prompt,
options = null,
default = null 
)

Prompts the user for input, and returns it.

Parameters:
string $prompt Prompt text.
mixed $options Array or string of options.
string $default Default input value.
Returns:
Either the default value, or the user-provided input.

Definition at line 766 of file acl.php.

AclCLI::getPath (  ) 

Enter description here...

Definition at line 293 of file acl.php.

AclCLI::grant (  ) 

Enter description here...

Definition at line 310 of file acl.php.

AclCLI::help (  ) 

Enter description here...

Definition at line 488 of file acl.php.

AclCLI::hr (  ) 

Outputs a series of minus characters to the standard output, acts as a visual separator.

Definition at line 813 of file acl.php.

AclCLI::inherit (  ) 

Enter description here...

Definition at line 354 of file acl.php.

AclCLI::initdb (  ) 

Enter description here...

Definition at line 411 of file acl.php.

References ConnectionManager::getDataSource().

AclCLI::nodeExists ( type,
id 
)

Enter description here...

Parameters:
unknown_type $type
unknown_type $id
Returns:
unknown

Definition at line 595 of file acl.php.

AclCLI::setParent (  ) 

Enter description here...

Definition at line 279 of file acl.php.

AclCLI::stderr ( string  ) 

Outputs to the stderr filehandle.

Parameters:
string $string Error text to output.

Definition at line 806 of file acl.php.

AclCLI::stdout ( string,
newline = true 
)

Outputs to the stdout filehandle.

Parameters:
string $string String to output.
boolean $newline If true, the outputs gets an added newline.

Definition at line 794 of file acl.php.

AclCLI::upgradedb (  ) 

Enter description here...

Definition at line 462 of file acl.php.

References ConnectionManager::getDataSource().

AclCLI::view (  ) 

Enter description here...

Definition at line 374 of file acl.php.


Member Data Documentation

AclCLI::$acl

Definition at line 143 of file acl.php.

AclCLI::$args

Definition at line 149 of file acl.php.

Referenced by AclCLI().

AclCLI::$dataSource = 'default'

Definition at line 155 of file acl.php.

AclCLI::$stderr

Definition at line 137 of file acl.php.

AclCLI::$stdin

Definition at line 125 of file acl.php.

AclCLI::$stdout

Definition at line 131 of file acl.php.


The documentation for this class was generated from the following file: