Sitemap.php

00001 <?php
00012 class Dsao_Model_About_Sitemap extends Dsao_Model_Abstract
00013 {
00020   protected $_siteMap = array
00021     (
00022       'about'   => array // 'about'-Modul
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 // 'default'-Modul
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 // 'game'-Modul
00051       (
00052         'desk'  => array
00053         (
00054           'delete'  => false,
00055           'edit'    => false,
00056           'show'    => true,
00057         ),
00058       ),
00059       'hero'    => array // 'hero'-Modul
00060       (
00061         'index' => array
00062         (
00063           'index'          => true,
00064           'generationtype' => true,
00065         ),
00066       ),
00067       'scroll'  => array // 'scroll'-Modul
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 // 'user'-Modul
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     // Falls Modul in Sitemap vorhanden
00120     if ($module && isset($this->_siteMap[$module]))
00121     {
00122       // array, resultierende Sitemap, wenn nicht alles zurueckgegeben werden
00123       // soll
00124       $resultSiteMap = array();
00125 
00126       $resultSiteMap[$module] = array();
00127 
00128       // Falls Controller in Sitemap vorhanden
00129       if ($controller && isset($this->_siteMap[$module][$controller]))
00130       {
00131         // Modul und Controller vorhanden
00132         $resultSiteMap[$module][$controller] =
00133           $this->_siteMap[$module][$controller];
00134       }
00135       else
00136       {
00137         // Modul vorhanden, Controller nicht
00138         $resultSiteMap[$module] =  $this->_siteMap[$module];
00139       }
00140 
00141       return $resultSiteMap;
00142     }
00143 
00144     // Weder Modul noch Controller vorhanden
00145     return $this->_siteMap;
00146   }
00147 }

Erzeugt am Fri Sep 18 19:04:11 2009 für DSA online - Morgendaemmerung von  doxygen 1.5.7.1