Better comments in core files, added dbad-license

This commit is contained in:
Timothy Warren 2012-01-09 10:32:52 -05:00
parent 2d85763af6
commit 3fdfec38c0
6 changed files with 101 additions and 5 deletions

View File

@ -1,4 +1,16 @@
<?php
/**
* MiniMVC
*
* Convention-based micro-framework for PHP
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2011 - 2012
* @link https://github.com/timw4mail/miniMVC
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
// Change this in a live environment!
error_reporting((-1) & ~(E_ERROR | E_PARSE));
@ -27,3 +39,5 @@ set_exception_handler('on_exception');
// And away we go!
route();
// End of index.php

View File

@ -1,9 +1,23 @@
<?php
/**
* MiniMVC
*
* Convention-based micro-framework for PHP
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2011 - 2012
* @link https://github.com/timw4mail/miniMVC
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* File including common framework-wide functions
*/
// --------------------------------------------------------------------------
/**
* Function to run on script shutdown
* -used to catch most fatal errors, and

View File

@ -1,6 +1,21 @@
<?php
/**
* Just for giggles extend PHP's PDO class
* MiniMVC
*
* Convention-based micro-framework for PHP
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2011 - 2012
* @link https://github.com/timw4mail/miniMVC
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Extend PHP's PDO class to add some more functionality
*
* @extends PDO
*/
class db extends PDO {

View File

@ -1,4 +1,16 @@
<?php
/**
* MiniMVC
*
* Convention-based micro-framework for PHP
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2011 - 2012
* @link https://github.com/timw4mail/miniMVC
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Parent class of base class, contains much of the magic
@ -132,6 +144,8 @@ class JSObject {
/**
* Base class for the framework
*
* @extends JSObject
*/
class miniMVC extends JSObject{
@ -285,6 +299,11 @@ class miniMVC extends JSObject{
// --------------------------------------------------------------------------
/**
* Base Controller Class
*
* @extends miniMVC
*/
class MM_Controller extends miniMVC {
function __construct()
@ -390,6 +409,11 @@ class MM_Controller extends miniMVC {
// --------------------------------------------------------------------------
/**
* Base Model Class
*
* @extends miniMVC
*/
class MM_Model extends miniMVC {
function __construct()

View File

@ -1,5 +1,22 @@
<?php
/**
* MiniMVC
*
* Convention-based micro-framework for PHP
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2011 - 2012
* @link https://github.com/timw4mail/miniMVC
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Class for displaying output and setting http headers
*
* @extends miniMVC
*/
class Output extends miniMVC {
private $buffer, $headers;

View File

@ -1,10 +1,22 @@
<?php
/**
* MiniMVC
*
* Convention-based micro-framework for PHP
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2011 - 2012
* @link https://github.com/timw4mail/miniMVC
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Class for building pages
*
* All methods are chainable, with the exception of the constructor,
* build_header(), build_footer(), build_page() and _headers() methods.
* build_header(), build_footer(), and _headers() methods.
*/
class Page
{