Methods summary
public
|
|
public
SessionConsumerInterface
|
|
public
EsmithDatabase
|
#
getDatabase( string $database )
Parameters
- $database
- SME database configuration name
Returns
EsmithDatabase
Implementation of
|
public
Nethgui\Adapter\AdapterInterface
|
#
getIdentityAdapter( string|ArrayAccess $database, string $key, string $prop = NULL, string $separator = NULL )
Get an adapter for a "key" or "prop".
Get an adapter for a "key" or "prop".
An Identity Adapter is associated with a database value stored in a key
or prop value. If a $separator character is specified, the adapter
is enhanced with an ArrayAccess interface, and the value is stored
joining its elements with that $separator.
Parameters
- $database
- Database name or ArrayAccess object
- $key
- Key connected to the adapter.
- $prop
- Optional - Set to a prop name to connect a prop instead of a key.
- $separator
- Optional - Specify a single character string to obtain an ArrayAccess and \Countable interface.
Returns
See
Api
Implementation of
|
public
Nethgui\Adapter\AdapterInterface
|
#
getMapAdapter( callable $readCallback, callable $writeCallback, array $args )
Get a mapping Adapter.
A Map Adapter maps database values through a "reader" and a "writer"
converter method. Values are specified through $args parameter.
Parameters
- $readCallback
- If $args has N elements $readCallback must accept N parameters and return a value.
- $writeCallback
- If $args has N elements $writeCallback must accept a parameter and return an array of N elements.
- $args
- An array of arrays in the form ($database, $key, $prop). $prop is optional.
Returns
See
Api
Implementation of
|
public
Nethgui\Adapter\AdapterInterface
|
#
getTableAdapter( string $database, string $typeOrKey, string $filterOrProp = NULL, array $separators = NULL )
Get a table adapter
A table adapter has an array interface, where each element represents a row, and each row
is an array itself.
Parameters
- $database
- Database name
- $typeOrKey
- The type of the keys to read from database or the key value where the data is stored
- $filterOrProp
- The string to filter the table data or set to a prop name to connect a prop instead of a key.
- $separators
- An array of one or two separator strings. The first is for the rows, the second for the columns. Set to NULL if $typeOrKey is a TYPE!
Returns
Api
Implementation of
|
public
Nethgui\System\ProcessInterface
|
#
signalEvent( string $eventSpecification, array $arguments = array() )
Run an event handler
The event can be signaled immediately or added to a queue.
An event is represented by a ProcessInterface. If the event specification
terminates with an ampersand (&) the process is detached.
Parameters
- $eventSpecification
- $event Event specification [@][ &]
- $arguments
- Optional event arguments
Returns
See
Api
Implementation of
|
public
|
|
public
|
#
runEvents( string $queueName )
Run enqueued events
Parameters
Implementation of
|
public
Nethgui\Authorization\PolicyEnforcementPointInterface
|
|
public
Nethgui\System\ProcessInterface
|
#
exec( string $command, array $arguments = array(), boolean $detached = FALSE )
PHP exec() wrapper
The arguments are replaced in the command string, searching for placeholders
in the form ${1} .. ${N}.
NOTE: Only placeholders corresponding to i+1 element in the
arguments array are replaced.
Parameters
- $command
- $arguments
- Arguments for the command. Will be shell-escaped.
- $detached
- If set the command is run detached from the PHP system process and traced
Returns
Api
Implementation of
|
public
Nethgui\Log\LogInterface
|
#
getLog( )
The log attached to the interface implementor
The log attached to the interface implementor
Returns
Api
Implementation of
|
public
Nethgui\Log\LogConsumerInterface
|
#
setLog( Nethgui\Log\LogInterface $log )
Change the log attached to the interface implementor
Change the log attached to the interface implementor
Parameters
Returns
Api
Implementation of
|
public
string
|
#
getDateFormat( )
Get the system internal date format
Get the system internal date format
Returns
string
Implementation of
|
public
Nethgui\Utility\PhpConsumerInterface
|
|
public
array
|
#
getDetachedProcesses( )
Deprecated
since version 1.6
Returns
array An array of \Nethgui\System\ProcessInterface traced objects
See
Implementation of
|
public
Nethgui\System\ProcessInterface
|
#
getDetachedProcess( string $identifier )
Deprecated
since version 1.6
Parameters
- $identifier
- $name The identifier of the process
Returns
Api
Implementation of
|
public
Nethgui\System\Validator
|
#
createValidator( )
Creates a Validator object that checks against each of the function arguemnts
Creates a Validator object that checks against each of the function arguemnts
Returns
Implementation of
|
public
|
|
public
|
|
public
array
|
#
getDependencySetters( )
The returned hash is indexed by the model class name and has a callable
objects as value. Each callable is invoked with the model instance as
only argument.
The returned hash is indexed by the model class name and has a callable
objects as value. Each callable is invoked with the model instance as
only argument.
Returns
array
Implementation of
|