Changeset 78 for trunk/www/Base/Controller.php
- Timestamp:
- Sep 11, 2009, 8:18:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Base/Controller.php
r69 r78 1 1 <?php 2 3 include_once(dirname(__FILE__).'/Model.php'); 2 4 3 5 class Controller extends Module 4 6 { 7 function Process() 8 { 9 if(array_key_exists('Action', $_GET)) $Action = $_GET['Action']; 10 else $Action = 'Show'; 11 if(method_exists($this, $Action)) 12 { 13 if($this->System->Modules['Permission']->Check(substr(get_class($this), 0, -10), $Action)) 14 return($this->$Action()); 15 else return('Nemáte oprávnění provést akci '.$Action.' modulu '.substr(get_class($this), 0, -10)); 16 } else return('Metoda '.$Action.' modulu '.get_class($this).' nenalezena.'); 17 } 5 18 } 6 19
Note:
See TracChangeset
for help on using the changeset viewer.