FORMfields


FORMfields.FfDbExtHelper

Class FfDbExtHelper

FfDbHelper
|
+--FfDbExtHelper

public class FfDbExtHelper
extends FfDbHelper

FfDbExtHelper contains database helper methods that are rarely used.

Since:
FORMfields v3.0

Fields inherited from FORMfields.FfDbHelper
dbLink, dbName, host, password, user
Constructor Summary

FfDbExtHelper(FfDbHelper ffDbHelper)

Creates a new FfDbExtHelper by wrapping a FfDbHelper.

__construct(FfDbHelper ffDbHelper)

Creates a new FfDbExtHelper by wrapping a FfDbHelper.

Method Summary
void

executeScript(string filename, boolean ignoreError)

Executes the specified SQL script.

string

formatPhoneNumberSql()

Returns a statement that can be used in SQL to format a string of 10-15 digits into a formatted telephone number and extension.

Methods inherited from FORMfields.FfDbHelper
connect, delete, getDbArray, getDbValue, getList, getRows, getSelectClause, getSimpleValue, getSimpleValues, insert, insertAttrChanges, printServerDownError, query, select, splitResultSet, update

Constructor Detail

FfDbExtHelper

public FfDbExtHelper(FfDbHelper ffDbHelper)

Creates a new FfDbExtHelper by wrapping a FfDbHelper.

Parameters:
ffDbHelper - the ffDbHelper to wrap
Deprecated:
deprecated as this is not the syntax for a constructor in PHP 5. Remove when PHP 5 becomes min requirement of FORMfields.

__construct

public __construct(FfDbHelper ffDbHelper)

Creates a new FfDbExtHelper by wrapping a FfDbHelper.

Parameters:
ffDbHelper - the ffDbHelper to wrap

Method Detail

executeScript

public void executeScript(string filename, boolean ignoreError)

Executes the specified SQL script.

Parameters:
filename - path to the SQL script to execute
ignoreError - true if SQL error messages should be ignored and execution should remain uninterrupted. Defaulted to false.

formatPhoneNumberSql

public string formatPhoneNumberSql()

Returns a statement that can be used in SQL to format a string of 10-15 digits into a formatted telephone number and extension.

Returns:
an SQL statement to format a telephone number for display

FORMfields