public
type
|
#
__get( string $name )
Defers magic method getter to the standard getter method
Defers magic method getter to the standard getter method
Parameters
Returns
type
Since
0.0.1a
|
public
type
|
#
__set( type $name, type $value )
Defers magic method setter to the standard setter method
Defers magic method setter to the standard setter method
Parameters
Returns
type
Since
0.0.1a
|
public
boolean
|
#
set( type $key, mixed $value )
Default standard setter. Performs the same
as the native php getter, except that it honors
locks if they are defined.
Default standard setter. Performs the same
as the native php getter, except that it honors locks if they are defined.
Parameters
Returns
boolean
Since
0.0.1a
|
public
mixed
|
#
get( string $id )
Default standard getter. Throws an oroboros
exception if resource not found instead of an
error. Otherwise behaves the same as the
native php getter.
Default standard getter. Throws an oroboros
exception if resource not found instead of an
error. Otherwise behaves the same as the
native php getter.
Parameters
Returns
mixed
Throws
Since
0.0.1a
|
public
|
#
initialize( array $params = array(), array $flags = array() )
Provides an unopinionated way to initialize parameters and flags.
This class does nothing with the parameters or flags aside from
storing them so they can be referenced and checked against. Child
classes should implement their own functionality around this, but
it can be safely ignored entirely.
Provides an unopinionated way to initialize parameters and flags.
This class does nothing with the parameters or flags aside from
storing them so they can be referenced and checked against. Child
classes should implement their own functionality around this, but
it can be safely ignored entirely.
Parameters
Since
0.0.1a
Note
Parameter and flag initialization can also happen directly in the constructor if they need to be exposed before your class initialization method runs, or may be exposed at both if you need to separate pre-initialization parameters from initialization parameters.
|
public
boolean
|
#
isInitialized( )
Provides a simple way of checking if initialization has occurred.
If initialization method has been called, this will return true.
Provides a simple way of checking if initialization has occurred.
If initialization method has been called, this will return true.
Returns
boolean
Since
0.0.2a
|
final public
type
|
#
fingerprint( )
This returns the unique fingerprint of the object.
All instantiated Oroboros objects have this method.
This method may not be overruled.
This returns the unique fingerprint of the object.
All instantiated Oroboros objects have this method.
This method may not be overruled.
Returns
type
Since
0.0.2a
|
protected
boolean
|
#
_isConstructed( )
Returns [true] if the base class has been constructed.
Useful for sanity checks and control blocks that suppress triggers from
firing before construction is complete.
Returns [true] if the base class has been constructed.
Useful for sanity checks and control blocks that suppress triggers from
firing before construction is complete.
Returns
boolean
Since
0.0.2a
|
protected
type
|
#
_checkLocks( array $status )
Provides a simple way of checking all current lock types at once.
Provides a simple way of checking all current lock types at once.
Parameters
Returns
type
Throws
Since
0.0.1a
|
protected
type
|
#
_checkLock( type $type )
Checks whether the provided type is enabled
or disabled. If the type is not recognized,
throws an exception.
Checks whether the provided type is enabled
or disabled. If the type is not recognized,
throws an exception.
Parameters
Returns
type
Throws
Since
0.0.1a
|
protected
type
|
#
_setLock( string $type, boolean $value )
Sets a lock to the specified state (true is on, false is off).
Sets a lock to the specified state (true is on, false is off).
Parameters
- $type
- ["read", "write", "execute"]
- $value
- [true, false, 0, 1]
Returns
type
Throws
Since
0.0.1a
|
protected
|
#
_updateParameterConditions( $parameter_key )
Overrule this method with how your parameters passed
into the constructor or initialization method should
be handled. It will be called whenever those parameters
are updated.
Overrule this method with how your parameters passed
into the constructor or initialization method should
be handled. It will be called whenever those parameters
are updated.
Since
0.0.1a
|
protected
|
#
_updateFlagConditions( )
Overrule this method with how your flags passed
into the constructor or initialization method should
be handled. It will be called whenever those parameters
are updated.
Overrule this method with how your flags passed
into the constructor or initialization method should
be handled. It will be called whenever those parameters
are updated.
Since
0.0.1a
|
protected
|
#
_setFlag( type $key )
Sets a flag.
Parameters
Throws
Since
0.0.1a
|
protected
boolean
|
#
_checkFlag( string $flag )
Checks if a specific flag has been set.
Checks if a specific flag has been set.
Parameters
Returns
boolean
Since
0.0.1a
|
protected
boolean
|
#
_checkParam( string $key )
Returns [true] if a parameter is defined, [false] if undefined.
This can be used to circumvent exceptions if the presence of a
specific parameter is not certain.
Returns [true] if a parameter is defined, [false] if undefined.
This can be used to circumvent exceptions if the presence of a
specific parameter is not certain.
Parameters
Returns
boolean
Since
0.0.2a
|
protected
mixed
|
#
_getParam( string $key )
Gets a specific parameter by key.
Gets a specific parameter by key.
Parameters
Returns
mixed
Throws
|
protected
|
#
_setParam( string $key, mixed $value )
Sets a specific parameter.
Sets a specific parameter.
Parameters
Since
0.0.1a
|
protected
|
#
_setParams( array $params )
Sets a list of parameters.
Sets a list of parameters.
Parameters
Since
0.0.2a
|
private
|
#
_handleParameters( array $parameters )
If [$parameters] is provided, sets the object
flags to the provided values, and calls
the _updateParameterConditions method.
If no parameters provided, Sets the parameters
back to their default state, and
calls the _updateParametersConditions method
(which fires any time parameters are updated).
If [$parameters] is provided, sets the object
flags to the provided values, and calls
the _updateParameterConditions method.
If no parameters provided, Sets the parameters
back to their default state, and
calls the _updateParametersConditions method
(which fires any time parameters are updated).
Parameters
|
private
|
#
_handleFlags( array $flags )
If [$flag] is provided, sets the object
flags to the provided values, and calls
the _updateFlagConditions method.
If no parameters provided, Sets the flags
back to their default state, and
calls the _updateFlagConditions method
(which fires any time flags are updated).
If [$flag] is provided, sets the object
flags to the provided values, and calls
the _updateFlagConditions method.
If no parameters provided, Sets the flags
back to their default state, and
calls the _updateFlagConditions method
(which fires any time flags are updated).
|
private
|
#
_resetParameters( )
Resets the defined class parameters to their default state.
Resets the defined class parameters to their default state.
Since
0.0.1a
|
private
|
#
_resetFlags( )
Resets flags in the object back to their predefined defaults.
Resets flags in the object back to their predefined defaults.
Since
0.0.1a
|
protected
|
#
_setFlags( array $flags )
Sets a group of flags.
Parameters
Since
0.0.2a
|
private
|
#
_lock( type $type )
Places a lock on this object instance for
one of the specified lock types [read, write, execute].
Places a lock on this object instance for
one of the specified lock types [read, write, execute].
Parameters
Throws
Since
0.0.1a
|
private
|
#
_unlock( type $type )
Unlocks access in the class for a specific
lock type [read, write, execute]
Unlocks access in the class for a specific
lock type [read, write, execute]
Parameters
Throws
Since
0.0.1a
|
private
string
|
|
private
|
#
_setFingerprint( )
Sets a unique fingerprint for each
instantiated instance of a class.
Sets a unique fingerprint for each
instantiated instance of a class.
Since
0.0.2a
|