Changeset 5549 for extensions/UserStat/userstat_aip.class.inc.php
- Timestamp:
- Apr 1, 2010, 9:06:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserStat/userstat_aip.class.inc.php
r5433 r5549 17 17 include_once('userstat_aim.class.inc.php'); 18 18 include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); 19 include_once(PHPWG_PLUGINS_PATH.' grum_plugins_classes-2/ajax.class.inc.php');19 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php'); 20 20 21 21 class UserStat_AIP extends UserStat_AIM 22 22 { 23 23 protected $tabsheet; 24 protected $ajax; 25 26 function UserStat_AIP($prefixeTable, $filelocation) 24 25 public function __construct($prefixeTable, $filelocation) 27 26 { 28 27 parent::__construct($prefixeTable, $filelocation); 29 28 30 $this->load _config();31 $this->init _events();29 $this->loadConfig(); 30 $this->initEvents(); 32 31 33 32 $this->tabsheet = new tabsheet(); 34 33 $this->tabsheet->add('global_stats', 35 34 l10n('us_tsGlobal'), 36 $this-> page_link.'&fUserStat_tabsheet=global_stats');35 $this->getAdminLink().'&fUserStat_tabsheet=global_stats'); 37 36 $this->tabsheet->add('users_stats', 38 37 l10n('us_tsUsers'), 39 $this->page_link.'&fUserStat_tabsheet=users_stats'); 40 41 $this->ajax = new Ajax(); 38 $this->getAdminLink().'&fUserStat_tabsheet=users_stats'); 39 } 40 41 public function __destruct() 42 { 43 unset($this->tabsheet); 44 parent::__destruct(); 42 45 } 43 46 … … 45 48 initialize events call for the plugin 46 49 */ 47 function init _events()48 { 49 add_event_handler('loc_end_page_header', array(&$this->css, 'apply _CSS'));50 function initEvents() 51 { 52 add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS')); 50 53 } 51 54 … … 112 115 break; 113 116 } 114 //$template-> 115 $this->ajax->return_result($result); 117 GPCAjax::returnResult($result); 116 118 } 117 119 } … … 154 156 $template_datas = array(); 155 157 156 $template_datas["ajaxUrl"] = $this-> page_link;158 $template_datas["ajaxUrl"] = $this->getAdminLink(); 157 159 $template_datas["users"] = $this->getUsersGlobalStats(); 158 160 … … 526 528 $local_tpl = new Template(USERSTAT_PATH."admin/", ""); 527 529 $local_tpl->set_filename('body_page', 528 dirname($this-> filelocation).'/admin/userstat_userstat.tpl');530 dirname($this->getFileLocation()).'/admin/userstat_userstat.tpl'); 529 531 530 532 $template_datas["list"] = $this->makeUserStats($userId);
Note: See TracChangeset
for help on using the changeset viewer.