The absolute bare minimum Content Management System (CMS).
The goal of this project was to be a "lightweight" CMS class to enable easy content management. It uses Linchpin for it's core database functions.
Just like any PHP class, declaring it follows the basic structure:
$cms = new PunyCMS();
PunyCMS requires the Linchpin PDO wrapper to function properly.
These are the functions that perform as the primary workhorse for the class.
add_entry( $category, $title, $content, $author, $created = null );
Argument | Type | Description |
---|---|---|
$category |
string | Category of the content. Used for grouping things together. |
$title |
string | Title of the entry. |
$content |
string | Content of the entry. |
$author |
string | Author of the entry. |
$created |
string | Optional date of entry as 'Y-m-d H:I:s'; the default is null and will Auto generate a date |
edit_entry();
Argument | Type | Description |
---|---|---|
$var |
Type | Description. |
search_entries();
Argument | Type | Description |
---|---|---|
$var |
Type | Description. |
delete_entry();
Argument | Type | Description |
---|---|---|
$var |
Type | Description. |