Changeset 16015 for extensions/UserStat/userstat_root.class.inc.php
- Timestamp:
- Jun 24, 2012, 9:20:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserStat/userstat_root.class.inc.php
r10344 r16015 22 22 23 23 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); 24 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCCss.class.inc.php');25 24 26 25 class UserStat_root extends CommonPlugin 27 26 { 28 protected $css; //the css object29 30 27 public function __construct($prefixeTable, $filelocation) 31 28 { … … 33 30 $this->setPluginNameFiles("userstat"); 34 31 parent::__construct($prefixeTable, $filelocation); 35 $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles().".css");36 }37 38 public function __destruct()39 {40 unset($this->css);41 parent::__destruct();42 32 } 43 33 … … 46 36 --------------------------------------------------------------------------- */ 47 37 48 /* this function initialize var $config with default values */ 49 /* 50 initialization of config properties 51 */ 52 function initConfig() 38 public function loadCSS() 53 39 { 54 $this->config=array(55 );40 parent::loadCSS(); 41 GPCCore::addHeaderCSS('userstat.css', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().".css"); 56 42 } 57 58 43 } 59 44
Note: See TracChangeset
for help on using the changeset viewer.