aboutsummaryrefslogtreecommitdiffstats
path: root/MainController.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-05-27 15:12:38 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-05-27 15:12:38 +0300
commit4b4c5271adf657331c867e79f88044d3317901ef (patch)
tree28a9699bd850b28e9c9cf9e2a508046d176cc6a0 /MainController.php
parentd462d86f086c812599f226861539829d427915e7 (diff)
downloadmain-4b4c5271adf657331c867e79f88044d3317901ef.tar.gz
main-4b4c5271adf657331c867e79f88044d3317901ef.tar.bz2
main-4b4c5271adf657331c867e79f88044d3317901ef.zip
fixes
Diffstat (limited to 'MainController.php')
-rw-r--r--MainController.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/MainController.php b/MainController.php
index c654ab0..de69e9a 100644
--- a/MainController.php
+++ b/MainController.php
@@ -14,26 +14,27 @@
class MainController
{
- public $view; // Where to store the data to be rendered
- public $pageTitle = ''; // Title of the rendered page
+ public $view; // Where to store the data to be rendered
+ public $pageTitle = ''; // Title of the rendered page
protected $template = 'default'; // The base template for this controller (view)
- private $defaultAction = ''; // Method to run when none specified
- const OrderBy = ''; // which column to order the results by
+ private $defaultAction = ''; // Method to run when none specified
+
+ const OrderBy = ''; // which column to order the results by
const HasMany = '';
const TableName = '';
const ManyToMany = '';
const ForeignKey = '';
const TableSelect = ''; // extra fields to select
- public $data;
- private $table;
- private $primary_key;
+ public $data; // data returned from DB
+ private $table; // corresponding Db table
+ private $primary_key; // name of primary key column
////
// create controller object
- function __construct($where = null)
+ function __construct($where = NULL)
{
// child classes typically have the same name as their tables
// but not always