Better comments in core files, added dbad-license
This commit is contained in:
parent
2d85763af6
commit
3fdfec38c0
14
index.php
14
index.php
@ -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
|
@ -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
|
||||
|
17
sys/db.php
17
sys/db.php
@ -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 {
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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;
|
||||
|
14
sys/page.php
14
sys/page.php
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user