Changeset 5001
- Timestamp:
- 16/05/08 18:13:03 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Trunk/association/serversides/cctiddly/Branches/Modules/includes/modules.php
r5000 r5001 9 9 private $tiddlers; 10 10 private $msgHandler; 11 11 12 12 public function __construct($author, $version, $website) { 13 13 global $Modules; … … 15 15 $this->version = $version; 16 16 $this->website = $website; 17 18 17 $this->plugins = array(); 19 18 $this->phpEvents = array(); … … 21 20 $this->msgHandler = array(); 22 21 array_push($Modules,$this); 23 /*$this->events = array();*/24 22 } 25 26 23 27 24 // Specified relative to the module folder, these javascripts will be directly included at the end of the whole wiki // 28 25 public function addPlugin($script) { … … 35 32 36 33 public function addEvent($eventname, $fileInclude) { 37 if ( !isset($this->phpEvents[$eventname]))38 $this->phpEvents[$eventname] = array();39 array_push($this->phpEvents[$eventname], $fileInclude);34 if ( !isset($this->phpEvents[$eventname])) 35 $this->phpEvents[$eventname] = array(); 36 array_push($this->phpEvents[$eventname], $fileInclude); 40 37 } 41 38