phpOpenTracker/phpOpenTracker API.php,1.50,1.51
Sebastian Bergmann <[email protected]> Sun, 29 Feb 2004 10:39:10 +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-serv31383/phpOpenTracker
Modified Files:
API.php
Log Message:
Flush.
Index: API.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API.php,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** API.php 27 Feb 2004 10:01:32 -0000 1.50
--- API.php 29 Feb 2004 10:39:07 -0000 1.51
***************
*** 32,44 ****
private $apiCalls = array();
private $apiPlugins = array();
- private $weekdays = array(
- 'sunday' => 0,
- 'monday' => 1,
- 'tuesday' => 2,
- 'wednesday' => 3,
- 'thursday' => 4,
- 'friday' => 5,
- 'saturday' => 6
- );
private function __construct() {
--- 32,35 ----
***************
*** 123,126 ****
--- 114,127 ----
private function parseParameters(&$parameters) {
+ $weekdays = array(
+ 'sunday' => 0,
+ 'monday' => 1,
+ 'tuesday' => 2,
+ 'wednesday' => 3,
+ 'thursday' => 4,
+ 'friday' => 5,
+ 'saturday' => 6
+ );
+
if (!is_array($parameters) ||
!isset($parameters['api_call'])) {
***************
*** 171,175 ****
else if ($field == 'weekday') {
! $parameters['constraints'][$field] = $this->weekdays[strtolower($value)];
}
--- 172,176 ----
else if ($field == 'weekday') {
! $parameters['constraints'][$field] = $weekdays[strtolower($value)];
}
-------------------------------------------------------
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