define |
"BASE" "../../.." |
---|---|
package |
Subsystems |
abs2rel(string $inPath) : string
This is useful if the file is not to be included server- but loaded client-side
node |
Subsystems:expCore |
---|
string
The absolute file path
string
array2csv( $items, array|null $rptcols = array()) : string
We grab the items array which is stored funkily in the DB in an associative array when we pull it. So basically our aray looks like this:
ITEMS {[id]=>myID, [Name]=>name, [Address]=>myaddr} {[id]=>myID1, [Name]=>name1, [Address]=>myaddr1} {[id]=>myID2, [Name]=>name2, [Address]=>myaddr2} {[id]=>myID3, [Name]=>name3, [Address]=>myaddr3} {[id]=>myID4, [Name]=>name4, [Address]=>myaddr4} {[id]=>myID5, [Name]=>name5, [Address]=>myaddr5}
So by nature of the array, the keys are repeated in each line (id, name, etc) So if we want to make a header row, we just run through once at the beginning and use the array_keys function to strip out a functional header
array|null
string
array_diff_assoc_recursive( $array1, $array2)
buildNameList( $type, $name, $subtype, $subname)
cast( $source, $destinationtype) : mixed
static |
---|
mixed
getCurrency( $amount, $currency_type = ECOM_CURRENCY) : string
static |
---|
string
getCurrencySymbol( $currency_type = ECOM_CURRENCY) : string
static |
---|
string
glob2keyedArray( $workArray)
is_php( $version) : boolean
boolean
TRUE if the current version is $version or higher
loadData( $url, boolean $ref = false, boolean $post = false) : mixed
static |
---|
boolean
boolean
mixed
makeLink(Array $params, string $type = '', string $sef_name = '') : string
This function does take into account the SEF URLs settings and the SSL urls in the site config.
node |
Subsystems:expCore |
---|
Array
An associative array of the desired querystring parameters.
string
string
string
makeLocation(null $mod = null, null $src = null, null $int = null) : object
static |
---|
null
null
null
object
makePodcastLink( $params) : string
static |
---|
string
makeRSSLink( $params) : string
static |
---|
string
makeSecureLink(Array $params) : string
This function does take into account the SEF URLs settings and the SSL urls in the site config, and uses the SSL url is the site is configured to use SSL. Otherwise, it works exactly like self::makeLink.
node |
Subsystems:expCore |
---|
Array
An associative array of the desired querystring parameters.
string
makeSefUrl(string $title, string $model) : mixed|string
string
string
mixed|string
maxUploadSize() : string
node |
Subsystems:expCore |
---|---|
string
maxUploadSizeMessage() : string
node |
Subsystems:expCore |
---|---|
string
resolveFilePaths( $type, $name, $subtype, $subname)
save_csv( $data, $rpt_columns = array(), $filename = 'report.csv')
saveData( $url, $filename, boolean $ref = false, boolean $post = false)
static | |
---|---|
boolean
boolean
URLisValid(string $url) : boolean
node |
Subsystems:expCore |
---|
string
The URL to test for validity
boolean