Functions
Check whether a variable is set, and return the var or $default
checkset(string $var, mixed $default) : string
echo 'posted var:' . checkset($_POST['var']);
Parameters
$default
mixed
Returns this if the $var param is !isset()
Returns
string
DStruct Autoloader.
dstruct_autoloader(string $class_name)
Attempts to autoload classes and then caches the results. See the
'autoloader_directories' property defined in the class constructor
for Prefs for more information.
Parameters
$class_name
string
Shutdown function set by DStruct.
dstruct_shutdown_fn()
PHP calls the shutdown function at the end of processing the script. Any un-caught
errors will be seen in this function and are emailed if required.
Shortened version of html_specialchars which passes by ref.
hsc(string $var)
Most useful for re-encoding where a user form has not validated and inputs are being
echoed to browser.
todo |
DOES NOT APPEAR TO WORK IF YOU PASS AN ARRAY ELEMENT e.g. hsc($data['element']); |
Parameters
$var
string
Encodes HTML safely for UTF-8.
html_encode(string $var) : string
Use instead of htmlentities.
Parameters
$var
string
Returns
string
Encodes HTML special characters safely for UTF-8.
html_specialchars(string $var) : string
Use instead of htmlspecialchars.
Parameters
$var
string
Returns
string
Classes and interfaces
AuthContainerInterface¶
To be compatible with the auth package, containers must impliment this interface.
« More »
DStructCacheInterface¶
Provides consistant caching interface.
« More »
TreeNodeMemberInterface¶
Programer defined objects which will be attached to a {@link TreeNode} should impliment this interface.
« More »
URLTranslatorInterface¶
Interface for mobile translator classes.
« More »
APCCache¶
Singleton class wrapping APC caching.
« More »
Auth¶
Acts as a central Authorisation and permissions system for the script.
« More »
AuthContainer¶
An available AuthContainer registered on the Auth system.
« More »
AuthContainers¶
Collection of AuthContainer objects.
« More »
AuthDataManager¶
DataManager class for Auth system.
« More »
Base¶
Prepares and caches database statements.
« More »
Calculate¶
Static methods providing calculations.
« More »
ClickController¶
Control and count clicks.
« More »
Convert¶
Static methods providing conversions.
« More »
DBIterator¶
Wraps database result set functionality.
« More »
DBSelector¶
Container for multiple DB Connections and allows switching.
« More »
DStructGeneralException¶
General exception thrown by DStruct.
« More »
DStructMemCache¶
Wraps PHP's MemCache class.
« More »
DataTable¶
Write tables from arrays or datasets.
« More »
DatabaseCache¶
Facade for caching in the database.
« More »
FSPermissions¶
Alter permissions on a *nix file system.
« More »
FileUploader¶
Simplified wrapper for file uploading.
« More »
Generate¶
Static methods which 'generate'.
« More »
Group¶
Users belong to one or more Group which in turn grants permissions.
« More »
ImpliedRights¶
Collection of ImpliedRight objects
« More »
ListTable¶
Build a table suitable for lists.
« More »
MobileController¶
Controller class for mobile package.
« More »
NullCache¶
If there is not cache available, then the bootstrap uses this class.
« More »
ObjCollection¶
Provides functionality for Object Collections.
« More »
Prefs¶
Application settings and Constants.
« More »
Prefs¶
Application settings and Constants.
« More »
ProjectError¶
Aids collation of error messages, and helps test whether errors exist.
« More »
Right¶
A right to do or access something.
« More »
SMTPEmail¶
Wraps PEAR's Mail and Mail_mime packages.
« More »
TableBuilder¶
Build tables dynamically.
« More »
TreeDataManager¶
Manages database access for {@link Tree} class.
« More »
TreeNode¶
Nodes of a {@link Tree} structure.
« More »
TreeNodeDataManager¶
DataManager for {@link TreeNode} class
« More »
TreeNodes¶
{@link TreeNode} collection object.
« More »
Trees¶
Object collection of {@link Tree} class.
« More »
URLTranslatorExtension¶
Not yet available.
« More »
URLTranslatorFactory¶
Factory to create translator classes.
« More »
URLTranslatorPath¶
Translates URLs which use different paths.
« More »
URLTranslatorSubDomain¶
Not yet available.
« More »
Validate¶
Class containing static methods to aid Validation
« More »
Constants