00001 <?php
00012 class Dsao_Model_About_Sitemap extends Dsao_Model_Abstract
00013 {
00020 protected $_siteMap = array
00021 (
00022 'about' => array
00023 (
00024 'contact' => array
00025 (
00026 'show' => true,
00027 ),
00028 'masthead'=> array
00029 (
00030 'show' => true,
00031 ),
00032 'sitemap' => array
00033 (
00034 'show' => true,
00035 ),
00036 ),
00037 'default' => array
00038 (
00039 'index' => array
00040 (
00041 'show' => true,
00042 ),
00043 'error' => array
00044 (
00045 'acl' => false,
00046 'exception' => false,
00047 'privileges' => false,
00048 ),
00049 ),
00050 'game' => array
00051 (
00052 'desk' => array
00053 (
00054 'delete' => false,
00055 'edit' => false,
00056 'show' => true,
00057 ),
00058 ),
00059 'hero' => array
00060 (
00061 'index' => array
00062 (
00063 'index' => true,
00064 'generationtype' => true,
00065 ),
00066 ),
00067 'scroll' => array
00068 (
00069 'overview' => array
00070 (
00071 'show' => true,
00072 ),
00073 'scroll' => array
00074 (
00075 'delete' => false,
00076 'send' => true,
00077 ),
00078 'thread' => array
00079 (
00080 'show' => false,
00081 ),
00082 ),
00083 'user' => array
00084 (
00085 'login' => array
00086 (
00087 'login' => true,
00088 'logout' => true,
00089 'password' => true,
00090 ),
00091 'profile' => array
00092 (
00093 'edit' => true,
00094 'show' => true,
00095 ),
00096 'register'=> array
00097 (
00098 'username' => true,
00099 'email' => false,
00100 'password' => false,
00101 'confirm' => false,
00102 'insert' => false,
00103 'activate' => true,
00104 ),
00105 ),
00106 );
00107
00117 public function getSiteMap($module = null, $controller = null)
00118 {
00119
00120 if ($module && isset($this->_siteMap[$module]))
00121 {
00122
00123
00124 $resultSiteMap = array();
00125
00126 $resultSiteMap[$module] = array();
00127
00128
00129 if ($controller && isset($this->_siteMap[$module][$controller]))
00130 {
00131
00132 $resultSiteMap[$module][$controller] =
00133 $this->_siteMap[$module][$controller];
00134 }
00135 else
00136 {
00137
00138 $resultSiteMap[$module] = $this->_siteMap[$module];
00139 }
00140
00141 return $resultSiteMap;
00142 }
00143
00144
00145 return $this->_siteMap;
00146 }
00147 }