/**
* Toolkit_Template_Page_SiteMap
- *
+ *
* Description of Toolkit_Template_Page_SiteMap
- *
+ *
* @category Toolkit
* @package Template/Page
* @author Jamie Kahgee <steve@gaslightmedia.com>
/**
* PDO
- *
+ *
* @var PDO
* @access private
*/
private $_dbh;
-
+
/**
* description of $_pageGateway
- *
+ *
* @var string
* @access private
*/
/**
* Class constructor
- *
+ *
* @param PDO $dbh PDO
* @param string $pageGatweway Page Gateway
- *
+ *
* @access public
*/
public function __construct(PDO $dbh, $pageGatweway)
/**
* Description of getContent()
- *
- * @return HTML_Template_Flexy
+ *
+ * @return HTML_Template_Flexy
* @access public
*/
public function getContent()
{
- $GLOBALS['styleSheets'][] = BASE_URL . 'css/siteMap.css';
+ $GLOBALS['styleSheets'][] = BASE_URL . 'css/siteMap.css';
$navArray = $this->getNavArray(0);
$page = new stdClass();
$tpl = new HTML_Template_Flexy(
}
// }}}
-
+
/**
* Description of getNavArray
- *
+ *
* @param string $parent Parent
- *
+ *
* @return array
* @throws Toolkit_Template_Exception
- * @access public
+ * @access public
*/
public function getNavArray($parent)
{
$where = '';
- if ( defined('MEMBERS_CATEGORY')
- && defined('MEMBERS_DB')
- && MEMBERS_DB
- ) {
- $where = 'AND id != ' . MEMBERS_CATEGORY;
- }
-
+// if ( defined('MEMBERS_CATEGORY')
+// && defined('MEMBERS_DB')
+// && MEMBERS_DB
+// ) {
+// $where = 'AND id != ' . MEMBERS_CATEGORY;
+// }
+
try {
$sql = "
SELECT id, navigation_name, parent