Changeset 217
- Timestamp:
- 04/08/08 01:57:38 (8 months ago)
- Files:
-
- trunk/Phergie/Driver/Abstract.php (modified) (1 diff)
- trunk/Phergie/Event/Response.php (modified) (6 diffs)
- trunk/Phergie/Plugin/Abstract/Command.php (modified) (2 diffs)
- trunk/Phergie/Plugin/Abstract/Cron.php (modified) (2 diffs)
- trunk/Phergie/Plugin/Acronym.php (modified) (3 diffs)
- trunk/Phergie/Plugin/Altnick.php (modified) (2 diffs)
- trunk/Phergie/Plugin/Autojoin.php (modified) (2 diffs)
- trunk/Phergie/Plugin/ChuckNorris.php (modified) (8 diffs)
- trunk/Phergie/Plugin/Convert.php (modified) (2 diffs)
- trunk/Phergie/Plugin/Ctcp.php (modified) (4 diffs)
- trunk/Phergie/Plugin/Daddy.php (modified) (1 diff)
- trunk/Phergie/Plugin/Debug.php (modified) (4 diffs)
- trunk/Phergie/Plugin/Dice.php (modified) (5 diffs)
- trunk/Phergie/Plugin/Dns.php (modified) (3 diffs)
- trunk/Phergie/Plugin/Drink.php (modified) (1 diff)
- trunk/Phergie/Plugin/Eval.php (modified) (3 diffs)
- trunk/Phergie/Plugin/FeedTicker.php (modified) (7 diffs)
- trunk/Phergie/Plugin/JoinPart.php (modified) (2 diffs)
- trunk/Phergie/Plugin/Karma.php (modified) (5 diffs)
- trunk/Phergie/Plugin/Lart.php (modified) (9 diffs)
- trunk/Phergie/Plugin/Logging.php (modified) (13 diffs)
- trunk/Phergie/Plugin/Math.php (modified) (5 diffs)
- trunk/Phergie/Plugin/ModuleList.php (modified) (2 diffs)
- trunk/Phergie/Plugin/Nickserv.php (modified) (7 diffs)
- trunk/Phergie/Plugin/Php.php (modified) (2 diffs)
- trunk/Phergie/Plugin/Pong.php (modified) (1 diff)
- trunk/Phergie/Plugin/Puppet.php (modified) (3 diffs)
- trunk/Phergie/Plugin/Quit.php (modified) (9 diffs)
- trunk/Phergie/Plugin/Sed.php (modified) (3 diffs)
- trunk/Phergie/Plugin/Seen.php (modified) (7 diffs)
- trunk/Phergie/Plugin/Set.php (modified) (6 diffs)
- trunk/Phergie/Plugin/Spellcheck.php (modified) (3 diffs)
- trunk/Phergie/Plugin/Tld.php (modified) (5 diffs)
- trunk/Phergie/Plugin/Toggle.php (modified) (8 diffs)
- trunk/Phergie/Plugin/UrbanDictionary.php (modified) (1 diff)
- trunk/Phergie/Plugin/Url.php (modified) (10 diffs)
- trunk/Phergie/Plugin/Weather.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Driver/Abstract.php
r215 r217 92 92 $excluded = ''; 93 93 if (strpos($hostmask, '!') !== false) { 94 $excluded .= '!';94 $excluded .= '!'; 95 95 } 96 96 if (strpos($hostmask, '@') !== false) { 97 $excluded .= '@';97 $excluded .= '@'; 98 98 } 99 99 trunk/Phergie/Event/Response.php
r215 r217 857 857 * @param string $code 858 858 */ 859 public function setCode($code) 859 public function setCode($code) 860 860 { 861 861 $this->code = $code; … … 867 867 * @return string 868 868 */ 869 public function getCode() 869 public function getCode() 870 870 { 871 871 return $this->code; … … 877 877 * @param string $description 878 878 */ 879 public function setDescription($description) 879 public function setDescription($description) 880 880 { 881 881 $this->description = $description; … … 887 887 * @return string 888 888 */ 889 public function getDescription() 889 public function getDescription() 890 890 { 891 891 return $this->description; … … 898 898 * @return void 899 899 */ 900 public function setRawBuffer($buffer) 900 public function setRawBuffer($buffer) 901 901 { 902 902 $this->rawBuffer = $buffer; … … 908 908 * @return string 909 909 */ 910 public function getRawBuffer() 910 public function getRawBuffer() 911 911 { 912 912 return $this->rawBuffer; trunk/Phergie/Plugin/Abstract/Command.php
r215 r217 20 20 * @return void 21 21 */ 22 public function onPrivmsg() 22 public function onPrivmsg() 23 23 { 24 24 $this->processCommand($this->event->getArgument(1)); … … 36 36 * @return void 37 37 */ 38 protected final function processCommand($message, $ignorePrefix = false, $forceBotPrefix = false) 38 protected final function processCommand($message, $ignorePrefix = false, $forceBotPrefix = false) 39 39 { 40 40 if (!$this->methods) { trunk/Phergie/Plugin/Abstract/Cron.php
r215 r217 45 45 * @return void 46 46 */ 47 final protected function check() 47 final protected function check() 48 48 { 49 49 if ($this->delay === null) { … … 64 64 * @return void 65 65 */ 66 public function onRaw() 66 public function onRaw() 67 67 { 68 68 $this->check(); trunk/Phergie/Plugin/Acronym.php
r215 r217 56 56 * @return void 57 57 */ 58 public function init() 58 public function init() 59 59 { 60 60 $limit = $this->getPluginIni('limit'); … … 75 75 * @return void 76 76 */ 77 protected function randomAction($target) 77 protected function randomAction($target) 78 78 { 79 79 do { … … 101 101 * @return void 102 102 */ 103 public function onPrivmsg() 103 public function onPrivmsg() 104 104 { 105 105 $source = $this->event->getSource(); trunk/Phergie/Plugin/Altnick.php
r215 r217 26 26 * @return void 27 27 */ 28 public function init() 28 public function init() 29 29 { 30 30 $this->index = -1; … … 36 36 * @return void 37 37 */ 38 public function onResponse() 38 public function onResponse() 39 39 { 40 40 if ($this->event->getCode() == Phergie_Event_Response::ERR_NICKNAMEINUSE) { trunk/Phergie/Plugin/Autojoin.php
r215 r217 28 28 * @return bool TRUE if dependencies are met, FALSE otherwise 29 29 */ 30 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 30 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 31 31 { 32 32 $channels = $client->getIni('autojoin.channels'); … … 44 44 * @return void 45 45 */ 46 public function onResponse() 46 public function onResponse() 47 47 { 48 48 switch ($this->event->getCode()) { trunk/Phergie/Plugin/ChuckNorris.php
r215 r217 81 81 * @return void 82 82 */ 83 public function init() 83 public function init() 84 84 { 85 85 try { … … 114 114 * @return bool TRUE if dependencies are met, FALSE otherwise 115 115 */ 116 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 116 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 117 117 { 118 118 if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) { … … 128 128 * @return bool True is successful, else false 129 129 */ 130 private function getChuckNorris($doCrawl = true) 130 private function getChuckNorris($doCrawl = true) 131 131 { 132 132 // The current page to retrieve … … 183 183 * otherwise 184 184 */ 185 private function findChuckNorris() 185 private function findChuckNorris() 186 186 { 187 187 if (!$this->db) { … … 209 209 * @return bool True is successful, else false 210 210 */ 211 private function feedChuckNorris() 211 private function feedChuckNorris() 212 212 { 213 213 if (!$this->db) { … … 240 240 * @return string A random fact 241 241 */ 242 private function praiseChuckNorris() 242 private function praiseChuckNorris() 243 243 { 244 244 if (!$this->db) { … … 255 255 * @return void 256 256 */ 257 public function onPrivmsg() 257 public function onPrivmsg() 258 258 { 259 259 if (!$this->db) { … … 287 287 * @return void 288 288 */ 289 public function onCtcp() 289 public function onCtcp() 290 290 { 291 291 $source = $this->event->getSource(); trunk/Phergie/Plugin/Convert.php
r215 r217 16 16 * @return bool TRUE if dependencies are met, FALSE otherwise 17 17 */ 18 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 18 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 19 19 { 20 20 if (!extension_loaded('Dom')) { … … 31 31 * @return void 32 32 */ 33 public function onDoConvert($convert) 33 public function onDoConvert($convert) 34 34 { 35 35 $target = $this->event->getNick(); trunk/Phergie/Plugin/Ctcp.php
r215 r217 6 6 class Phergie_Plugin_Ctcp extends Phergie_Plugin_Abstract_Base 7 7 { 8 public function onTime() 8 public function onTime() 9 9 { 10 10 $source = $this->event->getSource(); … … 14 14 } 15 15 16 public function onVersion() 16 public function onVersion() 17 17 { 18 18 $source = $this->event->getSource(); … … 22 22 } 23 23 24 public function onPing() 24 public function onPing() 25 25 { 26 26 $source = $this->event->getSource(); … … 33 33 } 34 34 35 public function onCtcp() 35 public function onCtcp() 36 36 { 37 37 $source = $this->event->getSource(); trunk/Phergie/Plugin/Daddy.php
r215 r217 13 13 * @return void 14 14 */ 15 public function onPrivmsg() 15 public function onPrivmsg() 16 16 { 17 17 $bot = $this->getIni('nick'); trunk/Phergie/Plugin/Debug.php
r215 r217 20 20 * @return void 21 21 */ 22 public function onDoMem() 22 public function onDoMem() 23 23 { 24 24 if (function_exists('memory_get_usage')) { … … 35 35 * @return void 36 36 */ 37 public function onDoUptime() 37 public function onDoUptime() 38 38 { 39 39 $target = $this->event->getNick(); … … 47 47 * @return void 48 48 */ 49 public function onDoExtensions() 49 public function onDoExtensions() 50 50 { 51 51 $target = $this->event->getNick(); … … 65 65 * @return void 66 66 */ 67 public function onDoGetversion($prog = null) 67 public function onDoGetversion($prog = null) 68 68 { 69 69 $target = $this->event->getNick(); trunk/Phergie/Plugin/Dice.php
r215 r217 45 45 * @return void 46 46 */ 47 protected function processExpression($expr) 47 protected function processExpression($expr) 48 48 { 49 49 // Parse equation … … 99 99 * @return void 100 100 */ 101 protected function processDice($message) 101 protected function processDice($message) 102 102 { 103 103 $message = trim($message); … … 141 141 * @return void 142 142 */ 143 public function onDoRoll($message) 143 public function onDoRoll($message) 144 144 { 145 145 $source = $this->event->getSource(); … … 156 156 * @return void 157 157 */ 158 public function onDoDice($message) 158 public function onDoDice($message) 159 159 { 160 160 $source = $this->event->getSource(); … … 172 172 * @return void 173 173 */ 174 public function onCtcp() 174 public function onCtcp() 175 175 { 176 176 $source = $this->event->getSource(); trunk/Phergie/Plugin/Dns.php
r215 r217 14 14 * @return void 15 15 */ 16 protected function processRequest($arg) 16 protected function processRequest($arg) 17 17 { 18 18 $target = $this->event->getNick(); … … 37 37 * @return void 38 38 */ 39 public function onDoDns($host) 39 public function onDoDns($host) 40 40 { 41 41 $this->processRequest($host); … … 48 48 * @return void 49 49 */ 50 public function onDoRevdns($ip) 50 public function onDoRevdns($ip) 51 51 { 52 52 $this->processRequest($ip); trunk/Phergie/Plugin/Drink.php
r216 r217 323 323 $text = 'throws ' . $target . ' a'; 324 324 if (preg_match('/^[aeoiu]/i', $drink)) { 325 $text .= 'n';326 } 327 $text .= ' ' . $drink;325 $text .= 'n'; 326 } 327 $text .= ' ' . $drink; 328 328 } else { 329 329 // One must be gentle with tea trunk/Phergie/Plugin/Eval.php
r215 r217 19 19 * @return void 20 20 */ 21 public function onDoEval($code) 21 public function onDoEval($code) 22 22 { 23 23 $user = $this->event->getNick(); … … 71 71 * @return void 72 72 */ 73 public function onDoExec($code) 73 public function onDoExec($code) 74 74 { 75 75 $user = $this->event->getNick(); … … 97 97 if (!empty($output)) { 98 98 if ($console) { 99 $this->debug('OUTPUT:' . PHP_EOL . implode( "\n", $output));99 $this->debug('OUTPUT:' . PHP_EOL . implode(PHP_EOL, $output)); 100 100 } 101 101 unset($output); trunk/Phergie/Plugin/FeedTicker.php
r215 r217 98 98 * @return void 99 99 */ 100 public function init() 100 public function init() 101 101 { 102 102 // Delay between feed syndications … … 151 151 * @return bool TRUE if dependencies are met, FALSE otherwise 152 152 */ 153 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 153 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 154 154 { 155 155 if (!extension_loaded('SimpleXML')) { … … 168 168 * @return void 169 169 */ 170 public function onPrivmsg() 170 public function onPrivmsg() 171 171 { 172 172 $this->checkQueue(); … … 180 180 * @return void 181 181 */ 182 protected function checkQueue() 182 protected function checkQueue() 183 183 { 184 184 if (!empty($this->queue) && time() > $this->nextOutput) { … … 217 217 * @return void 218 218 */ 219 protected function run() 219 protected function run() 220 220 { 221 221 $retrieved = array(); … … 290 290 291 291 // Checks the given feed Title and URL as well as article title against the feed filters 292 protected function filterCheck($id, $title, $url, $article) 292 protected function filterCheck($id, $title, $url, $article) 293 293 { 294 294 // Feed Title, Feed URL and Article Title Filters … … 315 315 * @return string 316 316 */ 317 protected function decode($str, $trim = null) 317 protected function decode($str, $trim = null) 318 318 { 319 319 $out = $this->decodeTranslit($str); trunk/Phergie/Plugin/JoinPart.php
r215 r217 26 26 * @param string $channel Name of the channel to join 27 27 */ 28 public function onDoJoin($channel) 28 public function onDoJoin($channel) 29 29 { 30 30 if (!empty($channel)) { … … 40 40 * @param Phergie_Event_Request $event Intercepted event 41 41 */ 42 public function onDoPart($channel = null) 42 public function onDoPart($channel = null) 43 43 { 44 44 $source = $this->event->getSource(); trunk/Phergie/Plugin/Karma.php
r215 r217 77 77 * @return void 78 78 */ 79 public function init() 79 public function init() 80 80 { 81 81 $this->db = null; … … 204 204 * @return bool TRUE if dependencies are met, FALSE otherwise 205 205 */ 206 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 206 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 207 207 { 208 208 if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) { … … 219 219 * @return void 220 220 */ 221 public function onPrivmsg() 221 public function onPrivmsg() 222 222 { 223 223 if (!$this->db) { … … 416 416 } 417 417 418 protected function fetchPositiveAnswer($owner, $owned) 418 protected function fetchPositiveAnswer($owner, $owned) 419 419 { 420 420 return str_replace(array('%owner%','%owned%'), array($owner, $owned), $this->positiveAnswers[array_rand($this->positiveAnswers,1)]); 421 421 } 422 422 423 protected function fetchNegativeAnswer($owned, $owner) 423 protected function fetchNegativeAnswer($owned, $owner) 424 424 { 425 425 return str_replace(array('%owner%','%owned%'), array($owner, $owned), $this->negativeAnswers[array_rand($this->negativeAnswers,1)]); 426 426 } 427 427 428 protected function doCleanWord($word) 428 protected function doCleanWord($word) 429 429 { 430 430 $word = trim($word); … … 441 441 * @return void 442 442 */ 443 public function doGc() 443 public function doGc() 444 444 { 445 445 unset($this->log); trunk/Phergie/Plugin/Lart.php
r215 r217 78 78 * @return void 79 79 */ 80 public function init() 80 public function init() 81 81 { 82 82 try { … … 154 154 * @return bool TRUE if dependencies are met, FALSE otherwise 155 155 */ 156 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 156 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 157 157 { 158 158 if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) { … … 171 171 * exists 172 172 */ 173 protected function getDefinition($term) 173 protected function getDefinition($term) 174 174 { 175 175 if (!isset($this->cache[$term])) { … … 192 192 * @return mixed String containing the definition or FALSE if no alias exist 193 193 */ 194 protected function getAlias($definition) 194 protected function getAlias($definition) 195 195 { 196 196 $this->alias->execute(array(':definition' => $definition)); … … 211 211 * @return void 212 212 */ 213 private function checkLart($message) 213 private function checkLart($message) 214 214 { 215 215 if (empty($message) || strlen($message) > 255) { … … 262 262 * @return array An array of aliases for the given term 263 263 */ 264 public function getAliases($term, $recursive = true, $firstRun = true) 264 public function getAliases($term, $recursive = true, $firstRun = true) 265 265 { 266 266 if (!is_array($this->aCache) || $firstRun) { … … 297 297 * @return void 298 298 */ 299 function deleteLart($name, $recursive = true) 299 function deleteLart($name, $recursive = true) 300 300 { 301 301 if (!$recursive) { … … 322 322 * @return void 323 323 */ 324 public function onPrivmsg() 324 public function onPrivmsg() 325 325 { 326 326 if (!$this->db) { … … 406 406 * @return void 407 407 */ 408 public function onAction() 408 public function onAction() 409 409 { 410 410 if (!$this->db) { trunk/Phergie/Plugin/Logging.php
r215 r217 118 118 * @return void 119 119 */ 120 public function init() 120 public function init() 121 121 { 122 122 try { … … 162 162 * @return bool TRUE if dependencies are met, FALSE otherwise 163 163 */ 164 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 164 public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 165 165 { 166 166 if (self::staticPluginLoaded('Users', $client, $plugins)) { … … 185 185 * @return void 186 186 */ 187 protected function insertEvent($type, $chan, $nick, $message = null) 187 protected function insertEvent($type, $chan, $nick, $message = null) 188 188 { 189 189 if (!is_object($this->db)) { … … 207 207 * @return void 208 208 */ 209 public function onPrivmsg() 209 public function onPrivmsg() 210 210 { 211 211 // Allow the Command plugin to process command calls … … 225 225 * @return void 226 226 */ 227 public function onAction() 227 public function onAction() 228 228 { 229 229 if ($this->event->isInChannel()) { … … 242 242 * @return void 243 243 */ 244 public function onJoin() 244 public function onJoin() 245 245 { 246 246 $this->insertEvent( … … 257 257 * @return void 258 258 */ 259 public function onPart() 259 public function onPart() 260 260 { 261 261 $this->insertEvent( … … 272 272 * @return void 273 273 */ 274 public function onKick() 274 public function onKick() 275 275 { 276 276 $this->insertEvent( … … 287 287 * @return void 288 288 */ 289 public function onMode() 289 public function onMode() 290 290 { 291 291 $this->insertEvent( … … 302 302 * @return void 303 303 */ 304 public function onTopic() 304 public function onTopic() 305 305 { 306 306 $this->insertEvent( … … 317 317 * @return void 318 318 */ 319 public function onQuit() 319 public function onQuit() 320 320 { 321 321 $nick = $this->event->getNick(); … … 336 336 * @return void 337 337 */ 338 public function onNick() 338 public function onNick() 339 339 { 340 340 $nick = $this->event->getNick(); … … 350 350 } 351 351 352 public static function databaseExists() 352 public static function databaseExists() 353 353 { 354 354 return (is_object(self::$staticDB) ? true : false); 355 355 } 356 356 357 public static function prepare($query) 357 public static function prepare($query) 358 358 { 359 359 if (!is_object(self::$staticDB)) { trunk/Phergie/Plugin/Math.php
r215 r217 11 11 * Backwards compatibility for constants not defined in PHP 5.1.x 12 12 */ 13 public function init() 13 public function init() 14 14 { 15 15 if (version_compare('5.2', PHP_VERSION, '>')) { … … 67 67 */ 68 68 //return sine of <an angle in degrees> 69 protected function sind($degrees) 69 protected function sind($degrees) 70 70 { 71 71 return sin(deg2rad($degrees)); 72 72 } 73 73 //return cosd of <an angle in degrees> 74 protected function cosd($degrees) 74 protected function cosd($degrees) 75 75 { 76 76 return cos(deg2rad($degrees)); 77 77 } 78 78 //return tand of <an angle in degrees> 79 protected function tand($degrees) 79 protected function tand($degrees) 80 80 { 81 81 return tan(deg2rad($degrees)); 82 82 } 83 83 //return atand of <an angle in degrees> 84 protected function atand($x) 84 protected function atand($x) 85 85 { 86 86 return rad2deg(atan($x)); 87 87 } 88 88 //return asind of <an angle in degrees> 89 protected function asind($x) 89 protected function asind($x) 90 90 { 91 91 return rad2deg(asin($x)); 92 92 } 93 93 //return acosd of <an angle in degrees> 94 protected function acosd($x) 94 protected function acosd($x) 95 95 { 96 96 return rad2deg(acos($x)); … … 103 103 * @return void 104 104 */ 105 protected function processRequest($expr, $quietMode = false) 105 protected function processRequest($expr, $quietMode = false) 106 106 { 107 107 $user = $this->event->getNick(); … … 195 195 * @return void 196 196 */ 197 public function onDoMath($expr) 197 public function onDoMath($expr) 198 198 { 199 199 $this->processRequest($expr, true); … … 205 205 * @return void 206 206 */ 207 public function onDoCalc($expr) 207 public function onDoCalc($expr) 208 208 { 209 209 $this->processRequest($expr); trunk/Phergie/Plugin/ModuleList.php
r215 r217 53 53 ); 54 54 55 public function onDoPlugins($rawArgs = '') 55 public function onDoPlugins($rawArgs = '') 56 56 { 57 57 $source = $this->event->getSource(); … … 154 154 } 155 155 $plugins = trim(count($pluginData[$plugin]) > 0 ? implode(', ', $pluginData[$plugin]) : ''); 156 $message .= ucfirst(str_replace('_', ' ', $plugin)) . ': ' . ($plugins ? $plugins : 'No Plugins') . ' :: ';156 $message .= ucfirst(str_replace('_', ' ', $plugin)) . ': ' . ($plugins ? $plugins : 'No Plugins') . ' :: '; 157 157 } 158 158 } trunk/Phergie/Plugin/Nickserv.php
r215 r217 43 43 * @return void 44 44 */ 45 public function init() 45 public function init() 46 46 { 47 47 parent::init(); … … 61 61 * @return void 62 62 */ 63 public function onNotice() 63 public function onNotice() 64 64 { 65 65 if (strtolower($this->event->getNick()) == strtolower($this->botNick)) { … … 81 81 * @return void 82 82 */ 83 public function onQuit() 83 public function onQuit() 84 84 { 85 85 $nick = $this->event->getNick(); … … 95 95 * @return void 96 96 */ 97 public function onNick() 97 public function onNick() 98 98 { 99 99 if ($this->event->getSource() == $this->getIni('nick')) { … … 107 107 * @return void 108 108 */ 109 public function onDoGhostbust() 109 public function onDoGhostbust() 110 110 { 111 111 $user = $this->event->getNick(); … … 130 130 * @return void 131 131 */ 132 public function onResponse() 132 public function onResponse() 133 133 { 134 134 if ($this->event->getCode() == Phergie_Event_Response::ERR_NICKNAMEINUSE) { … … 150 150 * @return void 151 151 */ 152 public function onKill() 152 public function onKill() 153 153 { 154 154 $this->doQuit($this->event->getArgument(1)); trunk/Phergie/Plugin/Php.php
r215 r217 24 24 * @return void 25 25 */ 26 public function init() 26 public function init() 27 27 { 28 28 $this->cache = array(); … … 36 36 * @return void 37 37 */ 38 public function onDoPhp($function) 38 public function onDoPhp($function) 39 39 { 40 40 if (!isset($this->cache[$function])) { trunk/Phergie/Plugin/Pong.php
r215 r217 20 20 * @return void 21 21 */ 22 public function onPing() 22 public function onPing() 23 23 { <