Universal administration tool and demo application for the TM::MyCSV class.
Don't hesitate to
report bugs or feature requests.
Variable Summary
SELF -- Represents the $_SERVER['PHP_SELF'] value.
dir -- Relative path where the .csv and .txt files are stored.
priv -- Privileges to grand or deny access to specific functions.
table -- MyCSV object currently edited by TM::MyCSVAdmin.
types -- Contains the suggested field types for the table.
Constructor Summary
MyCSVAdmin -- Initializes the class.
Method Summary
GET -- Gets a GET or POST value.
browse -- Shows the contents of a table.
change -- Shows a form to insert or update a row.
delete -- Confirms the deletion of a row.
delete_all -- Confirms the deletion of all rows.
download -- Download binary file specified by tablename, id and field.
drop -- Confirms the deletion of a column.
drop_table -- Confirms the deletion of a table.
export -- Shows a form to export the table.
htmlQuote -- Makes a string well readable to the browser.
structure -- Shows the structure of a table.
tables -- Shows a list of all tables.
Represents the $_SERVER['PHP_SELF'] value.
string $SELF
Relative path where the .csv and .txt files are stored.
string $dir
Privileges to grand or deny access to specific functions.
int $priv
Add the values in the following table to grand or deny access to specific functions of the administrative interface. Default is -1, everything enabled.
MyCSV object currently edited by TM::MyCSVAdmin.
MyCSV $table
Contains the suggested field types for the table.
string $types
Initializes the class.
MyCSVAdmin MyCSVAdmin ( void)
Loads the table specified by $_GET['table'] or $_POST['table']. Returns a new MyCSVAdmin object.
Gets a GET or POST value.
string GET ( string key)
This unifies the different behaviours of $_GET, $HTTP_GET_VARS, $GLOBALS (register_globals) and so on.
Shows the contents of a table.
void browse ( void)
Shows a form to insert or update a row.
void change ( void)
Confirms the deletion of a row.
void delete ( void)
Confirms the deletion of all rows.
void delete_all ( void)
Download binary file specified by tablename, id and field.
void download ( void)
Confirms the deletion of a column.
void drop ( void)
Confirms the deletion of a table.
void drop_table ( void)
Shows a form to export the table.
void export ( void)
Makes a string well readable to the browser.
string htmlQuote ( string text)
It strips any critical characters, truncates the string and replaces HTML entities.
Shows the structure of a table.
void structure ( void)
Shows a list of all tables.
void tables ( void)
Use dir to specify the working directory.