phpOpenTracker/phpOpenTracker/API/Result Clickpath.php,NONE,1.1 Iterator.php,NONE,1.1 Top.php,NONE,1.1

Sebastian Bergmann <[email protected]> Sun, 29 Feb 2004 17:47:21 +0000
Newsgroups gmane.comp.web.phpopentracker.cvs
Message-ID <[email protected]>
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API/Result
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15899/phpOpenTracker/API/Result

Added Files:
	Clickpath.php Iterator.php Top.php 
Log Message:
Flush.

--- NEW FILE: Top.php ---
<?php
//
// phpOpenTracker - The Website Traffic and Visitor Analysis Solution
//
// Copyright 2000 - 2004 Sebastian Bergmann. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $Id: Top.php,v 1.1 2004/02/29 17:47:19 bergmann Exp $
//

require_once POT_INCLUDE_PATH . 'API/Result.php';

/**
* Top
*
* @author   Sebastian Bergmann <[email protected]>
* @version  $Revision: 1.1 $
* @since    phpOpenTracker 1.0.0
*/
class phpOpenTracker_API_Result_Top extends phpOpenTracker_API_Result {
    protected $totalItems;
    protected $uniqueItems;

    public function __construct($items, $totalItems, $uniqueItems, $parameters, $supportedFormats = array()) {
        parent::__construct($items, $parameters, $supportedFormats);

        $this->totalItems  = $totalItems;
        $this->uniqueItems = $uniqueItems;
    }

    public function getTotalItems() {
        return $this->totalItems;
    }

    public function getUniqueItems() {
        return $this->uniqueItems;
    }
}

//
// "phpOpenTracker essenya, gul meletya;
//  Sebastian carneron PHP."
//
?>

--- NEW FILE: Iterator.php ---
<?php
//
// phpOpenTracker - The Website Traffic and Visitor Analysis Solution
//
// Copyright 2000 - 2004 Sebastian Bergmann. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $Id: Iterator.php,v 1.1 2004/02/29 17:47:19 bergmann Exp $
//

class phpOpenTracker_API_Result_Iterator implements Iterator {
    private $cursor = 0;
    private $result;

    public function __construct($result) {
        $this->result = $result;
    }

    public function rewind() {
        $this->cursor = 0;
    }

    public function hasMore() {
        return $this->cursor < sizeof($this->result);
    }

    public function key() {
        return $this->cursor;
    }

    public function current() {
        return $this->result[$this->cursor];
    }

    public function next() {
        $this->cursor++;
    }
}

//
// "phpOpenTracker essenya, gul meletya;
//  Sebastian carneron PHP."
//
?>

--- NEW FILE: Clickpath.php ---
<?php
//
// phpOpenTracker - The Website Traffic and Visitor Analysis Solution
//
// Copyright 2000 - 2004 Sebastian Bergmann. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $Id: Clickpath.php,v 1.1 2004/02/29 17:47:19 bergmann Exp $
//

require_once POT_INCLUDE_PATH . 'API/Result.php';

/**
* Clickpath
*
* @author   Sebastian Bergmann <[email protected]>
* @version  $Revision: 1.1 $
* @since    phpOpenTracker 1.0.0
*/
class phpOpenTracker_API_Result_Clickpath extends phpOpenTracker_API_Result {
}

//
// "phpOpenTracker essenya, gul meletya;
//  Sebastian carneron PHP."
//
?>



-------------------------------------------------------
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