anewt.lib.php File Reference

Anewt core file. More...

Go to the source code of this file.

Enumerations

enum  ANEWT_PATH
 The base directory path for all Anewt modules.

Functions

 create_include_function ($name, $path, $file_suffix='.lib.php', $main_file='main')
 Create a simple include function that loads modules.


Detailed Description

Anewt core file.

Include this file to load Anewt.

Definition in file anewt.lib.php.


Function Documentation

create_include_function ( name,
path,
file_suffix = '.lib.php',
main_file = 'main' 
)

Create a simple include function that loads modules.

Call this method from a default include file to have a anewt_include() like function for your own libraries.

Parameters:
$name Name of the function. This name will be suffixed with _include, e.g. myproject will result in the function myproject_include() being defined
$path The file path to use for inclusion
$file_suffix Filename suffix (optional, default to .lib.php)
$main_file Default filename in case the argument to the include function is a directory (optional, default to main)
See also:
anewt_include

Definition at line 44 of file anewt.lib.php.


Generated on Sun Aug 2 22:54:36 2009 for Anewt by  doxygen 1.5.9