pclib  3.0.0
Lightweight PHP framework
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
AuthConsole Class Reference

Execute auth console commands, see execute() method. More...

Inheritance diagram for AuthConsole:
AuthBase BaseObject

Public Member Functions

 executeFile ($fileName)
 Execute ATERM batch file. More...
 
 executeScript ($s)
 Execute ATERM script. More...
 
 execute ($line)
 Execute ATERM commands. More...
 
- Public Member Functions inherited from AuthBase
 __construct ()
 Constructor - load config parameters.
 
 passwordHash ($password)
 Return password hash. More...
 
 passwordHashVerify ($password, $hash)
 Verify password hash. More...
 
 setError ($message)
 Add error message into ->errors variable. More...
 
- Public Member Functions inherited from BaseObject
 loadDefaults ($className=null)
 Load default parameters of class $className into object instance.
 
 setProperties (array $defaults)
 Set public properties of object from the array. More...
 
 toArray ()
 Convert object to array. More...
 

Data Fields

 $db
 var Db
 
 $messages = array()
 Array of AuthConsole messages.
 
- Data Fields inherited from AuthBase
 $errors = array()
 Array of error messages (if any)
 
 $secret
 Secret string used for enpowerment of md5 hash.
 
 $passwordAlgo
 Password algorhitm - can be 'md5', 'bcrypt', 'bcrypt-md5'.
 
 $passwordCost = 10
 Bcrypt cost.
 
 $throwsExceptions = false
 Throws exceptions instead of just collecting errors in ->errors.
 
- Data Fields inherited from BaseObject
 $serviceLocator
 var function() Return service object when requested with service().
 

Protected Member Functions

 roleFilter (array $terms)
 Build filter for querying roles.
 
 userFilter (array $terms)
 Build filter for querying users. More...
 
 query (array $terms)
 Perform '?entity' commands. More...
 
 executeCmd ($cmd)
 Execute one ATERM command.
 
 message ($message, $params)
 Set message to $this->messages.
 
- Protected Member Functions inherited from AuthBase
 log ($category, $messageId, $message=null, $itemId=null)
 log security issue using App->logger.
 
- Protected Member Functions inherited from BaseObject
 service ($service, $default=null)
 Try acquire $service and load it into property $this->$service. More...
 

Protected Attributes

 $mng
 var AuthManager
 
- Protected Attributes inherited from AuthBase
 $app
 var App
 

Additional Inherited Members

- Static Public Member Functions inherited from BaseObject
static defaults ()
 Set or retireve default parameters of the object. More...
 

Detailed Description

Execute auth console commands, see execute() method.

Member Function Documentation

◆ execute()

execute (   $line)

Execute ATERM commands.

Generated messages are stored in $this->messages.

Parameters
string$lineATERM commands
Returns
bool $ok See ATERM commands for description of aterm language.

◆ executeFile()

executeFile (   $fileName)

Execute ATERM batch file.

Generated messages are stored in $this->messages.

Parameters
string$fileNameFilename of batch file
Returns
bool $ok See ATERM commands for description of aterm language.

◆ executeScript()

executeScript (   $s)

Execute ATERM script.

Parameters
string$sATERM script
Returns
bool $ok See ATERM commands for description of aterm language.

◆ query()

query ( array  $terms)
protected

Perform '?entity' commands.

Store result in $this->messages. Used in function execute().

◆ userFilter()

userFilter ( array  $terms)
protected

Build filter for querying users.

Return filter array. Used in query().


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