[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 class module_phpbrain extends Module 3 { 4 var $ui; 5 function module_phpbrain() 6 { 7 $this->arguments = array( 8 'post_questions' => array( 9 'type' => 'checkbox', 10 'label' => lang('Allow posting of questions') 11 ) 12 ); 13 $this->post = array('post_questions' => array('type' => 'checkbox')); 14 $this->title = lang('Knowledge Base'); 15 $this->description = lang('Enterprise Knowledge articles repository'); 16 } 17 18 function get_content(&$arguments, $properties) 19 { 20 $GLOBALS['egw_info']['flags']['currentapp'] = 'phpbrain'; 21 22 if (isset($_GET['menuaction'])) 23 { 24 list($app,$class,$method) = explode('.',@$_GET['menuaction']); 25 } 26 else 27 { 28 $class = 'uikb'; 29 $method = 'index'; 30 } 31 $app = 'phpbrain'; 32 $GLOBALS[$class] =& CreateObject(sprintf('%s.%s',$app,$class), $this->find_template_dir(), $this->link(), $arguments); 33 if((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method])) 34 { 35 return ExecMethod($app .'.'. $class.'.'.$method); 36 } 37 } 38 } 39 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |