phpClick
[ class tree: phpClick ] [ index: phpClick ] [ all elements ]

Procedural File: utilityFunctions.inc.php

Source Location: /templates/utilityFunctions.inc.php



Page Details:



Tags:

filesource:  Source Code for this file








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
[ Top ]



isInEditMode [line 91]

bool isInEditMode( )

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:

return:  true if the page is in edit mode, else false.


[ Top ]



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:

return:  1 if email address is valid, else 0.


[ Top ]



Documentation generated on Wed, 12 Jan 2005 17:53:14 -0500 by phpDocumentor 1.3.0RC3