Child classes:
- MainController
- This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
- ErrorsController
- This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
Inherited Methods
Class: Base
- Base::__construct()
- Constructor, will create the Base object setting up anything that it requires.
- Base::libxml_display_error()
- Base::libxml_display_errors()
- Base::__getErrorMessage()
- This function is used in order to get external access to the list of error messages from a non-Base object class.
- Base::__handleView()
- This function is used internally in order to handle the actual processing of everything to do with the view. pieces and then present it in the specified order (as decided by where it is within the array.
- Base::__initialize()
- This function is used in order to initialize the configuration object if needed as well as set up the error messages based on the XML file located in the directory as speicified by the configuration file.
- Base::__loadController()
- This fucntion is used in order load a specific controller into the memory so that it is able to be used later on (from the controller folder).
- Base::__loadHelper()
- This function can be used anywhere in order to load a specific helper library in order to allow it to be used later on.
- Base::__loadView()
- This function is used to actually load the specified view on the page.
- Base::__loadViews()
- This function is used in order to load multiple views and display them on the page.
- Base::__loadXML()
- This function is used in order to load any flat XML file into an array.
Class Details
This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This application is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Tags:
- author - Andrew Judd <contact@andrewjudd.ca>
- copyright - Andrew Judd, 2010
- abstract -
- description - This class acts as a base line class for the creation of any future controllers which are made. It will provide a load library function which will automatically create an instance of the library.
- project - Mini MVC
- name - app/controllers/basecontroller.php
- license - GPLv3
[ Top ]
Class Variables
Class Methods
__construct
BaseController __construct(
)
[line 39]
The no argument constructor.
The no argument constructor.
Tags:
- access - public
Overridden in child classes as:
Overrides Base::__construct() (Constructor, will create the Base object setting up anything that it requires.)
Parameters:
[ Top ]
__loadLibrary
boolean __loadLibrary(
string
$library, [array
$params = array ()])
[line 51]
This function can be used anywhere in order to load a specific library in order to allow it to be used later on.
This function can be used anywhere in order to load a specific library in order to allow it to be used later on.
Tags:
- return - - TRUE if the library has been loaded, FALSE otherwise
- access - public
Parameters:
- string $library - - The name of the library to load
- array $params - - The parameters for the constructor of the object
[ Top ]
__loadModel
void __loadModel(
array/string
$models)
[line 100]
This function is used statically in order to load any of the models required for the application. this function one by one or as an array. an array, each on of them is included sequentially.
This function is used statically in order to load any of the models required for the application. The models can either be passed into this function one by one or as an array. If they are passed in as an array, each on of them is included sequentially.
Tags:
- access - public
Parameters:
- array/string $models - - The single or array of models to use
[ Top ]