phpOpenTracker/phpOpenTracker API.php,1.45,1.46 Parser.php,1.21,1.22

Sebastian Bergmann <[email protected]> Fri, 27 Feb 2004 09:01:32 +0000
Newsgroups gmane.comp.web.phpopentracker.cvs
Message-ID <[email protected]>
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32298/phpOpenTracker

Modified Files:
	API.php Parser.php 
Log Message:
Flush.

Index: Parser.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Parser.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** Parser.php	27 Feb 2004 06:50:48 -0000	1.21
--- Parser.php	27 Feb 2004 09:01:29 -0000	1.22
***************
*** 134,138 ****
      }
  
!     protected static getMondayOfWeek($week, $year) {
        	return mktime(
        	  0, 0, 0, 1,
--- 134,138 ----
      }
  
!     protected static function getMondayOfWeek($week, $year) {
        	return mktime(
        	  0, 0, 0, 1,

Index: API.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API.php,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** API.php	27 Feb 2004 06:50:48 -0000	1.45
--- API.php	27 Feb 2004 09:01:29 -0000	1.46
***************
*** 25,32 ****
  
  class phpOpenTracker_API {
-     private $apiCalls = array();
      private $cache = null;
      private $configuration;
      private $container;
      private static $instance = null;
      private static $plugins = array();
--- 25,32 ----
  
  class phpOpenTracker_API {
      private $cache = null;
      private $configuration;
      private $container;
+     private static $apiCalls = array();
      private static $instance = null;
      private static $plugins = array();
***************
*** 66,77 ****
                      substr($file,  0, 1) != "#") {
                      if (@include(POT_API_PLUGIN_PATH . $file)) {
!                         $this->plugins[] = substr($file, 0, -4);
  
!                         $class  = 'phpOpenTracker_API_Plugin' . substr($file, 0, -4);
                          $plugin = new $class;
  
                          foreach ($plugin->apiCalls as $apiCall) {
!                             if (!isset($this->apiCalls[$apiCall])) {
!                                 $this->apiCalls[$plugin->apiType][$apiCall] = $plugin;
                              } else {
                                  throw new phpOpenTracker_API_Exception(
--- 66,77 ----
                      substr($file,  0, 1) != "#") {
                      if (@include(POT_API_PLUGIN_PATH . $file)) {
!                         self::$plugins[] = substr($file, 0, -4);
  
!                         $class  = 'phpOpenTracker_API_Plugin_' . substr($file, 0, -4);
                          $plugin = new $class;
  
                          foreach ($plugin->apiCalls as $apiCall) {
!                             if (!isset(self::$apiCalls[$apiCall])) {
!                                 self::$apiCalls[$plugin->apiType][$apiCall] = $plugin;
                              } else {
                                  throw new phpOpenTracker_API_Exception(



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click