summaryrefslogtreecommitdiffstats
path: root/system/core/Router.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-08-15 01:15:12 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-08-15 01:15:12 +0200
commit08d186492af82a7087c0a45a80b7e8d469c83292 (patch)
tree795ecf075e524e4a33d98a90580eb4dcabf80040 /system/core/Router.php
parent2369e77dcd716c772576c1f982e9446785db819d (diff)
parent07b53422f8d61e6b0b7e6479b0de92ad1a1ce05e (diff)
Merge pull request #52 from waldmeister/develop
Added some docs to CI core files
Diffstat (limited to 'system/core/Router.php')
-rwxr-xr-x[-rw-r--r--]system/core/Router.php46
1 files changed, 44 insertions, 2 deletions
diff --git a/system/core/Router.php b/system/core/Router.php
index 668ac0954..6da667472 100644..100755
--- a/system/core/Router.php
+++ b/system/core/Router.php
@@ -28,12 +28,54 @@
*/
class CI_Router {
+ /**
+ * Config class
+ *
+ * @var object
+ * @access public
+ */
var $config;
+ /**
+ * List of routes
+ *
+ * @var array
+ * @access public
+ */
var $routes = array();
+ /**
+ * List of error routes
+ *
+ * @var array
+ * @access public
+ */
var $error_routes = array();
+ /**
+ * Current class name
+ *
+ * @var string
+ * @access public
+ */
var $class = '';
+ /**
+ * Current method name
+ *
+ * @var string
+ * @access public
+ */
var $method = 'index';
+ /**
+ * Sub-directory that contains the requested controller class
+ *
+ * @var string
+ * @access public
+ */
var $directory = '';
+ /**
+ * Default controller (and method if specific)
+ *
+ * @var string
+ * @access public
+ */
var $default_controller;
/**
@@ -95,7 +137,7 @@ class CI_Router {
{
include(APPPATH.'config/routes.php');
}
-
+
$this->routes = ( ! isset($route) OR ! is_array($route)) ? array() : $route;
unset($route);
@@ -251,7 +293,7 @@ class CI_Router {
$this->set_directory('');
$this->set_class($x[0]);
$this->set_method(isset($x[1]) ? $x[1] : 'index');
-
+
return $x;
}
else