phpOpenTracker/phpOpenTracker/API Result.php,1.11,1.12
Sebastian Bergmann <[email protected]> Mon, 01 Mar 2004 17:49:23 +0000
| Newsgroups | gmane.comp.web.phpopentracker.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26798
Modified Files:
Result.php
Log Message:
Simplify.
Index: Result.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API/Result.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Result.php 1 Mar 2004 15:55:30 -0000 1.11
--- Result.php 1 Mar 2004 17:49:21 -0000 1.12
***************
*** 61,76 ****
}
- public function getAsNumber() {
- if (sizeof($this->result) == 1 &&
- sizeof($this->resultKeys) == 1 &&
- is_numeric($this->result[0][$this->resultKeys[0]])) {
- return $this->result[0][$this->resultKeys[0]];
- } else {
- throw new phpOpenTracker_API_Exception(
- 'Unsupported result format "Number" requested.'
- );
- }
- }
-
public function getAsXML() {
if ($this->supportedFormats['xml']) {
--- 61,64 ----
-------------------------------------------------------
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