diff --git a/docs/classes.svg b/docs/classes.svg index a771c03..6f8e754 100644 --- a/docs/classes.svg +++ b/docs/classes.svg @@ -19,112 +19,112 @@ - -\\MM_Model - - -MM_Model + +\\MM_Page + + +MM_Page + + + +\\MM_Output + + +MM_Output + + + +\\MM_Page->\\MM_Output + + + + +\\MM + + +MM + + + +\\MM_Output->\\MM + + + + +\\MM_Controller + + +MM_Controller -\\miniMVC +\\miniMVC miniMVC - -\\MM_Model->\\miniMVC - - + +\\MM_Controller->\\miniMVC + + -\\DB +\\DB DB -\\Query_Builder +\\Query_Builder \Query_Builder -\\DB->\\Query_Builder +\\DB->\\Query_Builder - -\\MM - - -MM - - -\\miniMVC->\\MM - - - - -\\MM_Page - - -MM_Page - - - -\\MM_Output - - -MM_Output - - - -\\MM_Page->\\MM_Output - - +\\miniMVC->\\MM + + -\\ArrayObject - -\ArrayObject +\\ArrayObject + +\ArrayObject -\\MM->\\ArrayObject - - +\\MM->\\ArrayObject + + - -\\MM_Controller - - -MM_Controller + +\\MM_Model + + +MM_Model - -\\MM_Controller->\\miniMVC - - + +\\MM_Model->\\miniMVC + + - -\\MM_Output->\\MM - - - - -\\MM_Data_Store - - -MM_Data_Store + +\\Data_Store + + +Data_Store - -\\MM_Session - - -MM_Session + +\\Session + + +Session diff --git a/docs/classes/DB.html b/docs/classes/DB.html index 5b6a908..d47f9fb 100644 --- a/docs/classes/DB.html +++ b/docs/classes/DB.html @@ -56,8 +56,6 @@
@@ -76,19 +76,19 @@

Classes and interfaces

-
-

MM_Data_Store +
+

Data_Store

Class for using JSON as a key->value data store

-« More » +« More »
-
-

MM_Session +
+

Session

Class to improve handling of PHP sessions

-« More » +« More »

@@ -96,7 +96,7 @@
+ generated on 2012-05-21T14:50:58-04:00.
diff --git a/docs/packages/miniMVC.System.html b/docs/packages/miniMVC.System.html index 8a6c5f5..4e3256f 100644 --- a/docs/packages/miniMVC.System.html +++ b/docs/packages/miniMVC.System.html @@ -61,13 +61,13 @@ -
  • MM_Model
  • +
  • MM_Page
  • +
  • MM_Output
  • +
  • MM_Controller
  • DB
  • miniMVC
  • -
  • MM_Page
  • MM
  • -
  • MM_Controller
  • -
  • MM_Output
  • +
  • MM_Model
  • @@ -136,7 +136,7 @@
    + generated on 2012-05-21T14:50:58-04:00.
    diff --git a/docs/packages/miniMVC.html b/docs/packages/miniMVC.html index e81c02b..d994795 100644 --- a/docs/packages/miniMVC.html +++ b/docs/packages/miniMVC.html @@ -76,6 +76,7 @@
  • Protected constructor for creating the one instance
    __construct
  • PHP magic method that is called when an object is treated as a function
    __invoke
  • Prints out the contents of the object when used as a string
    __toString
  • +
  • Function to autoload libraries/classes
    autoload
  • Returns routable methods for the specified controller class
    controller_methods
  • Array_map callback to load a folder of classes at once
    do_include
  • Singleton getter function
    get_instance
  • @@ -92,6 +93,7 @@ display them cleanly">Function to run on script shutdo -used to catch most fatal errors, and display them cleanly
    shutdown
  • Returns a full url from a url segment
    site_url
  • +
  • Function to autoload system libraries
    sys_autoload
  • Prints out the contents of the object
    to_string
  • @@ -159,6 +161,18 @@ display them cleanly
    shutdown
    string
    +
    +

    Function to autoload libraries/classes

    +
    autoload($name) 
    +
    +
    +

    +

    Parameters

    +
    +

    $name

    +

    string

    +
    +

    Returns routable methods for the specified controller class

    controller_methods(string $controller) : array
    @@ -310,6 +324,18 @@ display them cleanly
    string
    +
    +

    Function to autoload system libraries

    +
    sys_autoload($name) 
    +
    +
    +

    +

    Parameters

    +
    +

    $name

    +

    string

    +
    +

    Prints out the contents of the object

    to_string(\object/array $data, string $method) : string
    @@ -368,19 +394,19 @@ display them cleanly

    Classes and interfaces

    -
    -

    MM_Data_Store +
    +

    Data_Store

    Class for using JSON as a key->value data store

    -« More » +« More »
    -
    -

    MM_Session +
    +

    Session

    Class to improve handling of PHP sessions

    -« More » +« More »

    + generated on 2012-05-21T14:50:58-04:00.
    diff --git a/docs/structure.xml b/docs/structure.xml index 2d3c76f..9cab69b 100644 --- a/docs/structure.xml +++ b/docs/structure.xml @@ -1,342 +1,6 @@ - - - - Convention-based micro-framework for PHP

    ]]>
    - - - - - -
    - - MM_Model - \MM_Model - \miniMVC - - - - - - - - __construct - function - - - - - array - - - void - - - - $args - - array - - - -
    - - - - Convention-based micro-framework for PHP

    ]]>
    - - - - - -
    - - DB - \DB - \Query_Builder - - - - - - - - $instance - - - - - - array - - - - - get_instance - function - - - - - string - - - array - - - \DB - - - - $dbname - - - - - $options - - array - - - - __construct - function - - - - - array - - - - $params - - array - - - - __call - function - - - - - string - - - array - - - mixed - - - - $name - - - - - $params - - - - - - get_last_error - function - - - - - string - - - - -
    - - - - Convention-based micro-framework for PHP

    ]]>
    - - - - - -
    - - __construct - function - - - - - - - __call - function - - - - - string - - - array - - - - $name - - - - - $params - - - - - - __toString - function - - - - - string - - - - - __invoke - function - - - - - array - - - \self - - - - $params - - - - - - get_instance - function - - - - - \self - - - - - __clone - function - - - - - -
    - - - - Convention-based micro-framework for PHP

    ]]>
    - - - - - -
    - - miniMVC - \miniMVC - \MM - - - - - - - - __construct - function - - - - - array - - - - $members - - - - - - load_class - function - - - - - string - - - object - - - - $name - - - - - - unload - function - - - - - string - - - - $name - - - - - - load_config - function - - - - - string - - - - $name - - - - - -
    - + Convention-based micro-framework for PHP

    ]]>
    @@ -473,429 +137,437 @@ build_header(), build_footer(), and _headers() methods.

    ]]> - - _headers + + __destruct function + + + + + + _headers + function + Also sets page mime type, based on if sent as html or xhtml, and what the target browser supports

    ]]>
    - + bool - + \Page
    - + $html5
    - + set_meta function - + Sets meta tags, with codeigniter native meta tag helper

    ]]>
    - + array - + \Page
    - + $meta
    - + set_head_js_group function - + - + string - + bool - + \Page - + $group - + $debug - + set_css_group function - + - + string - + \Page - + $group - + set_foot_js_group function - + - + string - + bool - + \Page - + $group - + $debug - + set_title function - + - + string - + \Page - + $title - + set_body_class function - + - + string - + \Page - + $class - + set_body_id function - + - + string - + \Page - + $id - + set_base function - + - + string - + \Page - + $href - + set_css_tag function - + - + string - + bool - + string - + \Page - + $name - + $domain - + $media - + set_head_tag function - + - + string - + \Page - + $tag - + build_header function - + - + bool - + \Page - + $html5 - + build_footer function - + - + script_tag function - + Helper function for making script tags

    ]]>
    - + string - + bool - + string
    - + $js - + $domain
    - + set_message function - + Adds a message to the page

    ]]>
    - + string - + string - + bool - + void
    - + $type - + $message - + $return
    - + redirect_303 function - + Shortcut function for 303 redirect

    ]]>
    - + string
    - + $url
    - + render function - + Shortcut function for building a page

    ]]>
    - + string - + array
    - + $view - + $data
    - + output_string function - + Similar to render(), this is a shortcut to output a string in the body of the page.

    ]]>
    - + string
    - + $string
    - + _meta function - + - + array - + string - + $params - + _link_tag function - + - + array - + string - + $params @@ -903,177 +575,7 @@ page.

    ]]>
    - - - - Convention-based micro-framework for PHP

    ]]>
    - - - - - -
    - - MM - \MM - \ArrayObject - - - - - - - - __construct - function - - - - - - - $members - - - - - - __call - function - - - - - string - - - array - - - mixed - - - - $name - - - - - $params - - - - - -
    - - - - Convention-based micro-framework for PHP

    ]]>
    - - - - - -
    - - MM_Controller - \MM_Controller - \miniMVC - - - - - - - - $page - - - - - - \Page - - - - - __construct - function - - - - - void - - - - - load_model - function - - - - - string - - - array - - - void - - - - $file - - - - - $args - - - - - - load_view - function - - - - - string - - - array - - - bool - - - mixed - - - - $file - - - - - $data - - array - - - $return - - - - - -
    - + Convention-based micro-framework for PHP

    ]]>
    @@ -1203,7 +705,452 @@ Used for outputing HTML]]>
    - + + + + Convention-based micro-framework for PHP

    ]]>
    + + + + + +
    + + MM_Controller + \MM_Controller + \miniMVC + + + + + + + + $page + + + + + + \Page + + + + + __construct + function + + + + + void + + + + + load_model + function + + + + + string + + + array + + + void + + + + $file + + + + + $args + + + + + + load_view + function + + + + + string + + + array + + + bool + + + mixed + + + + $file + + + + + $data + + array + + + $return + + + + + +
    + + + + Convention-based micro-framework for PHP

    ]]>
    + + + + + +
    + + DB + \DB + \Query_Builder + + + + + + + + $instance + + + + + + array + + + + + get_instance + function + + + + + string + + + array + + + \DB + + + + $dbname + + + + + $options + + array + + + + get_last_error + function + + + + + string + + + + +
    + + + + Convention-based micro-framework for PHP

    ]]>
    + + + + + +
    + Generic + + __toString + function + + + + + string + + + + + __invoke + function + + + + + array + + + \self + + + + $params + + + + + + __construct + function + + + + + + + __call + function + + + + + string + + + array + + + + $name + + + + + $params + + + + + + get_instance + function + + + + + \self + + + + + __clone + function + + + + + +
    + + + + Convention-based micro-framework for PHP

    ]]>
    + + + + + +
    + + miniMVC + \miniMVC + \MM + + + + + + + + __construct + function + + + + + array + + + + $members + + + + + + unload + function + + + + + string + + + + $name + + + + + + load_config + function + + + + + string + + + + $name + + + + + +
    + + + + Convention-based micro-framework for PHP

    ]]>
    + + + + + +
    + + MM + \MM + \ArrayObject + + + + + + + + __construct + function + + + + + + + $members + + + + + + __call + function + + + + + string + + + array + + + mixed + + + + $name + + + + + $params + + + + + +
    + + + + Convention-based micro-framework for PHP

    ]]>
    + + + + + +
    + + MM_Model + \MM_Model + \miniMVC + + + + + + + + __construct + function + + + + + array + + + void + + + + $args + + array + + + +
    + Convention-based micro-framework for PHP

    ]]>
    @@ -1214,8 +1161,8 @@ Used for outputing HTML]]>
    - MM_Data_Store - \MM_Data_Store + Data_Store + \Data_Store value data store]]> @@ -1348,7 +1295,7 @@ of the singleton]]>
    - + Convention-based micro-framework for PHP

    ]]>
    @@ -1359,8 +1306,8 @@ of the singleton]]>
    - MM_Session - \MM_Session + Session + \Session @@ -1446,7 +1393,7 @@ of the singleton]]>
    - + Convention-based micro-framework for PHP

    ]]>
    @@ -1456,237 +1403,265 @@ of the singleton]]>
    - - shutdown + + sys_autoload function + + + + + + $name + + + + + + autoload + function + + + + + + + $name + + + + + + shutdown + function + - + void - + on_error function - + - + int - + string - + string - + int - + \ErrorException - + $severity - + $message - + $filepath - + $line - + on_exception function - + - + \Exception - + void - + $exception - + show_404 function - + - + void - + show_error function - + - + string - + int - + $message - + $status_code - + is_like_array function - + - + mixed - + bool - + $var - + controller_methods function - + - + string - + array - + $controller - + site_url function - + - + string - + string - + $segment - + to_string function - + - + \object/array - + string - + string - + $data - + $method - + do_include function - + - + string - + void - + $path - + init function - + - + void - + route function - + - + void