Public Member Functions | |
__construct ($error=0, $message= 'success') | |
setError ($error=0) | |
getError () | |
setHttpStatusCode ($code= '200') | |
getHttpStatusCode () | |
setMessage ($message= 'success', $type=NULL) | |
getMessage () | |
add ($key, $val) | |
adds ($object) | |
get ($key) | |
gets () | |
getVariables () | |
getObjectVars () | |
toBool () | |
toBoolean () | |
Public Attributes | |
$error = 0 | |
$message = 'success' | |
$variables = array() | |
$httpStatusCode = NULL | |
Every modules inherits from BaseObject class. It includes error, message, and other variables for communicatin purpose.
Definition at line 9 of file BaseObject.class.php.
BaseObject::__construct | ( | $error = 0 , |
|
$message = 'success' |
|||
) |
Constructor
int | $error | Error code |
string | $message | Error message |
Definition at line 42 of file BaseObject.class.php.
BaseObject::add | ( | $key, | |
$val | |||
) |
Setter to set a key/value pair as an additional variable
string | $key | A variable name |
mixed | $val | A value for the variable |
Definition at line 128 of file BaseObject.class.php.
BaseObject::adds | ( | $object | ) |
Method to set multiple key/value pairs as an additional variables
BaseObject | array | $object | Either object or array containg key/value pairs to be added |
Definition at line 139 of file BaseObject.class.php.
BaseObject::get | ( | $key | ) |
Method to retrieve a corresponding value to a given key
string | $key |
Definition at line 161 of file BaseObject.class.php.
BaseObject::getError | ( | ) |
Getter to retrieve error code
Definition at line 64 of file BaseObject.class.php.
BaseObject::getHttpStatusCode | ( | ) |
Getter to retrieve HTTP status code
Definition at line 85 of file BaseObject.class.php.
BaseObject::getMessage | ( | ) |
Getter to retrieve an error message
Definition at line 116 of file BaseObject.class.php.
BaseObject::getObjectVars | ( | ) |
Method to retrieve an object of key/value pairs
Definition at line 197 of file BaseObject.class.php.
BaseObject::gets | ( | ) |
Method to retrieve an object containing a key/value pairs
Definition at line 171 of file BaseObject.class.php.
BaseObject::getVariables | ( | ) |
Method to retrieve an array of key/value pairs
Definition at line 187 of file BaseObject.class.php.
BaseObject::setError | ( | $error = 0 | ) |
Setter to set error code
int | $error | error code |
Definition at line 54 of file BaseObject.class.php.
BaseObject::setHttpStatusCode | ( | $code = '200' | ) |
Setter to set HTTP status code
int | $code | HTTP status code. Default value is 200 that means successful |
Definition at line 75 of file BaseObject.class.php.
BaseObject::setMessage | ( | $message = 'success' , |
|
$type = NULL |
|||
) |
Setter to set set the error message
string | $message | Error message |
Definition at line 96 of file BaseObject.class.php.
BaseObject::toBool | ( | ) |
Method to return either true or false depnding on the value in a 'error' variable
Definition at line 212 of file BaseObject.class.php.
BaseObject::toBoolean | ( | ) |
Method to return either true or false depnding on the value in a 'error' variable
Definition at line 223 of file BaseObject.class.php.
BaseObject::$error = 0 |
Definition at line 15 of file BaseObject.class.php.
BaseObject::$httpStatusCode = NULL |
Definition at line 33 of file BaseObject.class.php.
BaseObject::$message = 'success' |
Definition at line 21 of file BaseObject.class.php.
BaseObject::$variables = array() |
Definition at line 27 of file BaseObject.class.php.