$withUnixTimestamp
$withUnixTimestamp :
boolean
RESOURCECOMMON class
Common functions for quotes and paraphrases
insert(mixed||string|int v, alreadyExisted = FALSE, mixed||string|int errs = array()) : \returns
Insert new resource into database.
mixed||string|int | v | POST/GET variables needed to create resource (the actual required and optional keys should be specified) |
alreadyExisted | Indicates if the resource already exists. Reference, default is FALSE |
|
mixed||string|int | errs | Array to push any errors that occur. Reference, default is empty array |
the id of the (new or already existing) resource or returns FALSE on failure.
getResource(mixed||string|int ids = FALSE, order1 = FALSE, order2 = FALSE, order3 = FALSE, subQuery = FALSE, sqlOnly = FALSE) :
Return resultset for one or more resources.
NB -- resource ID conditions can be set elsewhere $orderX is for footnote ordering in CITESTYLE/CITEFORMAT or $order1 is for the ordering of CMS output.
mixed||string|int | ids | Resource IDs, default is FALSE |
order1 | Default is FALSE |
|
order2 | Default is FALSE |
|
order3 | Default is FALSE |
|
subQuery | Can come from elsewhere such as core/cms/CMS.php. Default is FALSE |
|
sqlOnly | Don't execute, just return SQL statement. Default is FALSE |
SQL statement|SQL resource object