Changeset 468 for trunk/lib/Navigation.inc.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/lib/Navigation.inc.php
r464 r468 37 37 38 38 // Configuration parameters for this object. 39 var$_params = array(39 private $_params = array( 40 40 'head_title' => true, 41 41 'body_title' => true, … … 48 48 'last_crumb_format' => '%s', 49 49 ); 50 var$pages = array();50 public $pages = array(); 51 51 52 52 /** 53 53 * Navigation constructor. 54 54 */ 55 function Navigation($params=null)55 public function __construct($params=null) 56 56 { 57 57 $app =& App::getInstance(); … … 74 74 * @param array $vars Additional page variables. 75 75 */ 76 function add($title, $url=null, $vars=array())76 public function add($title, $url=null, $vars=array()) 77 77 { 78 78 $page = array( … … 91 91 * @param array $params Array of parameters (key => val pairs). 92 92 */ 93 function setParam($params)93 public function setParam($params) 94 94 { 95 95 $app =& App::getInstance(); … … 110 110 * @return mixed Configured parameter value. 111 111 */ 112 function getParam($param)112 public function getParam($param) 113 113 { 114 114 $app =& App::getInstance(); … … 127 127 * @access public 128 128 */ 129 function clear()129 public function clear() 130 130 { 131 131 $this->pages = array(); … … 139 139 * @param mixed $val Value to set variable to. 140 140 */ 141 function set($key, $val)141 public function set($key, $val) 142 142 { 143 143 // Set params of current page. … … 154 154 * @return mixed Value stored in session. 155 155 */ 156 function get($key, $default='')156 public function get($key, $default='') 157 157 { 158 158 $curr_page =& $this->pages[sizeof($this->pages) - 1]; … … 205 205 * @return mixed Path (string) or false if path param is not set. 206 206 */ 207 function getPath($key='title')207 public function getPath($key='title') 208 208 { 209 209 if ($this->getParam('path')) { … … 227 227 * @return string Breadcrumbs or empty string if breadcrumbs param not set. 228 228 */ 229 function getBreadcrumbs()229 public function getBreadcrumbs() 230 230 { 231 231 $app =& App::getInstance(); … … 279 279 * @return mixed The value set for $return, TRUE by default. 280 280 */ 281 function currentPage($test_uri, $true_return=true, $false_return=false, $strip_query=false)281 public function currentPage($test_uri, $true_return=true, $false_return=false, $strip_query=false) 282 282 { 283 283 $actual_uri = $strip_query ? strtok($_SERVER['REQUEST_URI'], '?') : $_SERVER['REQUEST_URI']; … … 291 291 } 292 292 // End of class. 293 294 ?>
Note: See TracChangeset
for help on using the changeset viewer.