Procedural File: utilityFunctions.inc.php
Source Location: /templates/utilityFunctions.inc.php
Page Details:
Tags:
getDbPlaceholderValueCallback [line 72]
void getDbPlaceholderValueCallback(
array $matches)
|
|
This function is a callback for preg_replace_callback which finds each occurrance of a particular database field placeholder (example: [firstname]) and substitutes it with the value of this database field IMPORTANT: This function expects an associative array with the name "row" to be defined in global scope
Parameters
array |
$matches |
list of values from a preg_replace_callback function |
isInEditMode [line 91]
This function checks whether the web page is viewed in preview mode or in edit mode. Each page should receive "editMode" through GET or POST variables from which this function decides whether it is in edit mode or not. If the variable editMode is not set it is assumed to be false and the page will be opened in run mode.
Tags:
isValidEmail [line 10]
int isValidEmail(
mixed $email)
|
|
This function validate a email address. This is a PHP function that returns true if the email address given is valid else false code adapted from php.net, "mail" help page, author: tstrum@salter.com
Tags:
|