8000 GitHub - supergnaw/PunyCMS: The absolute bare minimum CMS system.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

supergnaw/PunyCMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PunyCMS

The absolute bare minimum Content Management System (CMS).

Background

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.

Class Usage

Declaring The Class

Just like any PHP class, declaring it follows the basic structure:

$cms = new PunyCMS();

Dependencies

PunyCMS requires the Linchpin PDO wrapper to function properly.

Primary Methods

These are the functions that perform as the primary workhorse for the class.

Add Entry

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

edit_entry();
Argument Type Description
$var Type Description.

Search Entries

search_entries();
Argument Type Description
$var Type Description.

Delete Entry

delete_entry();
Argument Type Description
$var Type Description.

About

The absolute bare minimum CMS system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0