Set Limit Function Description
PDOModel setLimit function allows to set a limit for selected data.
Function Defination
void function setLimit($limit);
Parameters Details
| Details | Type | Example |
|---|---|---|
| $limit | string | set limit like "0,10" |
Set Colunm Function Description
PDOModel setColumns function allows to set a colunm names for selected data.
Function Defination
void function setColumns($column);
Parameters Details
| Details | Type | Example |
|---|---|---|
| $column | array | simple 2-d array |
Display Error Function Description
PDOModel displayError function use for set the status of error.
Function Defination
void function displayError($errorStatus);
Parameters Details
| Details | Type | Example |
|---|---|---|
| $errorStatus | boolean | Pass true or false |
Where Function Description
PDOModel where function use for sets where condition.
Function Defination
void function where($column, $value, $operator = "=");
Parameters Details
| Details | Type | Example |
|---|---|---|
| $column | string | The name of column for which where condition needs to be applied. |
| $value | string | value of column to be checked |
| $operator | string | Type of operator =, NOT IN, IN, BETWEEN etc. |
Where Subquery Function Description
PDOModel where function use for sets where subquery condition.
Function Defination
void function where_subquery($column, $subquery, $operator, $value = "");
Parameters Details
| Details | Type | Example |
|---|---|---|
| $column | string | The name of column for which where condition needs to be applied. |
| $subquery | string | subquery to be run. |
| $value | string | value of column to be checked |
| $operator | string | Type of operator =, NOT IN, IN, BETWEEN etc. |