RESOURCECOMMON class
Common functions for quotes and paraphrases
version | 1 |
---|---|
package | wikindx4\core\resources |
author | Mark Grimshaw |
__construct()
doHighlight(string $text) : string
string
string
getResource(array $ids, string $order1, string $order2, string $order3, string $subQuery, boolean $sqlOnly) : mixed
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.
array
Resource IDs, default is FALSE
string
Default is FALSE
string
Default is FALSE
string
Default is FALSE
string
Can come from elsewhere such as core/cms/CMS.php. Default is FALSE
boolean
Don't execute, just return SQL statement. Default is FALSE
mixed
SQL statement|SQL resource objectinsert(array $v, boolean $alreadyExisted, array $errs) : \returns: mixed
todo | Needs code-review! Is this even where this function should be? |
---|
array
POST/GET variables needed to create resource (the actual required and optional keys should be specified)
boolean
Indicates if the resource already exists. Reference, default is FALSE
array
Array to push any errors that occur. Reference, default is empty array
\returns
the id of the (new or already existing) resource or returns FALSE on failure.mixed
FALSE|Resource IDsetHighlightPatterns()
Creates array of regexp expressions for search terms
showCitations(int $resourceId, boolean $countOnly)
int
boolean
Default is FALSE
tableSetup()
addField(array $fields, string $prefix, string $name, string $value)
array
Reference
string
string
string
fieldName(string $prefix, string $base) : string
string
string
string
$categoryFields
$collectionFields
$groupByResourceId
$keywordFields
$languageFields
$listFields
$musingFields
$pageFields
$publisherFields
$resourceFields
$resourceMiscFields
$summaryFields
$textFields
$unixTimestampFields
$userFields
$withUnixTimestamp
$yearFields
$commonBib
$commonBrowse
$db
$errors
$gatekeep
$highlightPatterns
$html
$resourceMap
$session