phpOpenTracker/phpOpenTracker/API/Plugin .cvsignore,NONE,1.1 AccessStatistics.php,NONE,1.1 ClickpathAnalysis.php,NONE,1.1 PlotAccessStatistics.php,NONE,1.1 PlotTop.php,NONE,1.1 ReturningVisitors.php,NONE,1.1 Top.php,NONE,1.1 VisitorsOnline.php,NONE,1.1
Sebastian Bergmann <[email protected]>
| Newsgroups | gmane.comp.web.phpopentracker.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API/Plugin In directory sc8-pr-cvs1:/tmp/cvs-serv20027/phpOpenTracker/API/Plugin Added Files: .cvsignore AccessStatistics.php ClickpathAnalysis.php PlotAccessStatistics.php PlotTop.php ReturningVisitors.php Top.php VisitorsOnline.php Log Message: Implement phpOpenTracker_API::loadPlugins(). Move API/plugins/* to API/Plugin/. --- NEW FILE: Top.php --- <?php // // +---------------------------------------------------------------------+ // | phpOpenTracker - The Website Traffic and Visitor Analysis Solution | // +---------------------------------------------------------------------+ // | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. | // +---------------------------------------------------------------------+ // | This source file is subject to the phpOpenTracker Software License, | // | Version 1.0, that is bundled with this package in the file LICENSE. | // | If you did not receive a copy of this file, you may read it online | // | at http://www.phpopentracker.de/license.html. | // +---------------------------------------------------------------------+ // // $Id: Top.php,v 1.1 2003/11/23 18:15:20 bergmann Exp $ // /** * phpOpenTracker API - Top * * @author Sebastian Bergmann <[email protected]> * @version $Revision: 1.1 $ * @since phpOpenTracker 1.0.0 */ class phpOpenTracker_API_Plugin_Top extends phpOpenTracker_API_Plugin { /** * API Calls * * @var array $apiCalls */ public $apiCalls = array('top'); /** * API Type * * @var string $apiType */ public $apiType = 'get'; /** * Runs the phpOpenTracker API call. * * @param array $parameters * @return mixed * @access public */ public function run($parameters) { } } // // "phpOpenTracker essenya, gul meletya; // Sebastian carneron PHP." // ?> --- NEW FILE: VisitorsOnline.php --- <?php // // +---------------------------------------------------------------------+ // | phpOpenTracker - The Website Traffic and Visitor Analysis Solution | // +---------------------------------------------------------------------+ // | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. | // +---------------------------------------------------------------------+ // | This source file is subject to the phpOpenTracker Software License, | // | Version 1.0, that is bundled with this package in the file LICENSE. | // | If you did not receive a copy of this file, you may read it online | // | at http://www.phpopentracker.de/license.html. | // +---------------------------------------------------------------------+ // // $Id: VisitorsOnline.php,v 1.1 2003/11/23 18:15:20 bergmann Exp $ // /** * phpOpenTracker API - Visitors Online * * @author Sebastian Bergmann <[email protected]> * @version $Revision: 1.1 $ * @since phpOpenTracker 1.0.0 */ class phpOpenTracker_API_Plugin_VisitorsOnline extends phpOpenTracker_API_Plugin { /** * API Calls * * @var array $apiCalls */ public $apiCalls = array( 'num_visitors_online', 'visitors_online' ); /** * API Type * * @var string $apiType */ public $apiType = 'get'; /** * Runs the phpOpenTracker API call. * * @param array $parameters * @return mixed * @access public */ public function run($parameters) { $parameters['session_lifetime'] = isset($parameters['session_lifetime']) ? $parameters['session_lifetime'] : 3; switch ($parameters['api_call']) { case 'num_visitors_online': { return $this->numVisitorsOnline($parameters); } break; case 'visitors_online': { return $this->visitorsOnline($parameters); } break; } } /** * Returns the number of visitors currently online. * * @param array $parameters * @return integer * @access private * @since phpOpenTracker 1.3.0 */ private function numVisitorsOnline($parameters) { } /** * Returns information about the visitors currently online. * * @param array $parameters * @return mixed * @access private * @since phpOpenTracker 1.3.0 */ private function visitorsOnline($parameters) { } } // // "phpOpenTracker essenya, gul meletya; // Sebastian carneron PHP." // ?> --- NEW FILE: ReturningVisitors.php --- <?php // // +---------------------------------------------------------------------+ // | phpOpenTracker - The Website Traffic and Visitor Analysis Solution | // +---------------------------------------------------------------------+ // | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. | // +---------------------------------------------------------------------+ // | This source file is subject to the phpOpenTracker Software License, | // | Version 1.0, that is bundled with this package in the file LICENSE. | // | If you did not receive a copy of this file, you may read it online | // | at http://www.phpopentracker.de/license.html. | // +---------------------------------------------------------------------+ // // $Id: ReturningVisitors.php,v 1.1 2003/11/23 18:15:20 bergmann Exp $ // /** * phpOpenTracker API - Returning Visitors * * @author Sebastian Bergmann <[email protected]> * Sven Weih <[email protected]> * @version $Revision: 1.1 $ * @since phpOpenTracker 1.0.5 */ class phpOpenTracker_API_Plugin_ReturningVisitors extends phpOpenTracker_API_Plugin { /** * API Calls * * @var array $apiCalls */ public $apiCalls = array( 'average_time_between_visits', 'average_visits', 'num_one_time_visitors', 'num_return_visits', 'num_returning_visitors', 'num_unique_visitors', 'returning_visitors' ); /** * API Type * * @var string $apiType */ public $apiType = 'get'; /** * Runs the phpOpenTracker API call. * * @param array $parameters * @return mixed * @access public */ public function run($parameters) { switch ($parameters['api_call']) { case 'average_time_between_visits': { return $this->averageTimeBetweenVisits($parameters); } break; case 'average_visits': { return $this->averageVisits($parameters); } break; case 'num_one_time_visitors': { return $this->numOneTimeVisitors($parameters); } break; case 'num_return_visits': { return $this->numReturnVisits($parameters); } break; case 'num_returning_visitors': { return $this->numReturningVisitors($parameters); } break; case 'num_unique_visitors': { return $this->numUniqueVisitors($parameters); } break; case 'returning_visitors': { return $this->returningVisitors($parameters); } break; } } /** * Returns the average time between visits of * returning visitors. * * @param array $parameters * @return integer * @access private * @author Sven Weih <[email protected]> * @since phpOpenTracker 1.3.0 */ private function averageTimeBetweenVisits($parameters) { } /** * Returns the average number of visits of * returning visitors. * * @param array $parameters * @return integer * @access private * @since phpOpenTracker 1.3.0 */ private function averageVisits($parameters) { } /** * Returns the number of one time visitors. * * @param array $parameters * @return integer * @access private * @author Sven Weih <[email protected]> * @since phpOpenTracker 1.3.0 */ private function numOneTimeVisitors($parameters) { } /** * Returns the number of return visits. * * @param array $parameters * @return integer * @access private * @since phpOpenTracker 1.3.0 */ private function numReturnVisits($parameters) { } /** * Returns the number of returning visitors. * * @param array $parameters * @return integer * @access private * @since phpOpenTracker 1.3.0 */ private function numReturningVisitors($parameters) { } /** * Returns the number of unique visitors. * * @param array $parameters * @return integer * @access private * @since phpOpenTracker 1.3.0 */ private function numUniqueVisitors($parameters) { } /** * Returns information for the returning visitors. * * @param array $parameters * @return array * @access private */ private function returningVisitors($parameters) { } } // // "phpOpenTracker essenya, gul meletya; // Sebastian carneron PHP." // ?> --- NEW FILE: ClickpathAnalysis.php --- <?php // // +---------------------------------------------------------------------+ // | phpOpenTracker - The Website Traffic and Visitor Analysis Solution | // +---------------------------------------------------------------------+ // | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. | // +---------------------------------------------------------------------+ // | This source file is subject to the phpOpenTracker Software License, | // | Version 1.0, that is bundled with this package in the file LICENSE. | // | If you did not receive a copy of this file, you may read it online | // | at http://www.phpopentracker.de/license.html. | // +---------------------------------------------------------------------+ // // $Id: ClickpathAnalysis.php,v 1.1 2003/11/23 18:15:20 bergmann Exp $ // require_once POT_INCLUDE_PATH . 'API/Clickpath.php'; /** * phpOpenTracker API - Clickpath Analysis * * @author Sebastian Bergmann <[email protected]> * Sven Weih <[email protected]> * @version $Revision: 1.1 $ * @since phpOpenTracker 1.0.0 */ class phpOpenTracker_API_Plugin_ClickpathAnalysis extends phpOpenTracker_API_Plugin { /** * API Calls * * @var array $apiCalls */ public $apiCalls = array( 'all_paths', 'average_clickpath_length', 'individual_clickpath', 'top_paths', 'longest_paths', 'shortest_paths' ); /** * API Type * * @var string $apiType */ public $apiType = 'get'; /** * Runs the phpOpenTracker API call. * * @param array $parameters * @return mixed * @access public */ public function run($parameters) { switch ($parameters['api_call']) { case 'average_clickpath_length': { return $this->averageClickpathLength($parameters); } break; case 'individual_clickpath': { return $this->individualClickpath($parameters); } break; case 'all_paths': case 'top_paths': case 'longest_paths': case 'shortest_paths': { return $this->clickpathAnalysis($parameters); } break; } } /** * @param array $parameters * @return mixed * @access private * @since phpOpenTracker 1.3.0 */ private function clickpathAnalysis($parameters) { } /** * Returns the average clickpath length. * * @param array $parameters * @return integer * @access private * @author Sven Weih <[email protected]> * @since phpOpenTracker 1.3.0 */ private function averageClickpathLength($parameters) { } /** * Returns an individual clickpath. * * @param array $parameters * @return mixed * @access private * @since phpOpenTracker 1.3.0 */ private function individualClickpath($parameters) { } } // // "phpOpenTracker essenya, gul meletya; // Sebastian carneron PHP." // ?> --- NEW FILE: AccessStatistics.php --- <?php // // +---------------------------------------------------------------------+ // | phpOpenTracker - The Website Traffic and Visitor Analysis Solution | // +---------------------------------------------------------------------+ // | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. | // +---------------------------------------------------------------------+ // | This source file is subject to the phpOpenTracker Software License, | // | Version 1.0, that is bundled with this package in the file LICENSE. | // | If you did not receive a copy of this file, you may read it online | // | at http://www.phpopentracker.de/license.html. | // +---------------------------------------------------------------------+ // // $Id: AccessStatistics.php,v 1.1 2003/11/23 18:15:20 bergmann Exp $ // /** * phpOpenTracker API - Access Statistics * * @author Sebastian Bergmann <[email protected]> * @version $Revision: 1.1 $ * @since phpOpenTracker 1.2.0 */ class phpOpenTracker_API_Plugin_AccessStatistics extends phpOpenTracker_API_Plugin { /** * API Calls * * @var array $apiCalls */ public $apiCalls = array( 'page_impressions', 'visits' ); /** * API Type * * @var string $apiType */ public $apiType = 'get'; /** * Runs the phpOpenTracker API call. * * @param array $parameters * @return mixed * @access public */ public function run($parameters) { } } // // "phpOpenTracker essenya, gul meletya; // Sebastian carneron PHP." // ?> --- NEW FILE: PlotAccessStatistics.php --- <?php // // +---------------------------------------------------------------------+ // | phpOpenTracker - The Website Traffic and Visitor Analysis Solution | // +---------------------------------------------------------------------+ // | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. | // +---------------------------------------------------------------------+ // | This source file is subject to the phpOpenTracker Software License, | // | Version 1.0, that is bundled with this package in the file LICENSE. | // | If you did not receive a copy of this file, you may read it online | // | at http://www.phpopentracker.de/license.html. | // +---------------------------------------------------------------------+ // // $Id: PlotAccessStatistics.php,v 1.1 2003/11/23 18:15:20 bergmann Exp $ // /** * phpOpenTracker API - Plot Access Statistics * * @author Sebastian Bergmann <[email protected]> * @version $Revision: 1.1 $ * @since phpOpenTracker 1.0.0 */ class phpOpenTracker_API_Plugin_PlotAccessStatistics extends phpOpenTracker_API_Plugin { /** * API Calls * * @var array $apiCalls */ public $apiCalls = array('access_statistics'); /** * API Type * * @var string $apiType */ public $apiType = 'plot'; /** * Runs the phpOpenTracker API call. * * @param array $parameters * @return mixed * @access public */ public function run($parameters) { } } // // "phpOpenTracker essenya, gul meletya; // Sebastian carneron PHP." // ?> --- NEW FILE: PlotTop.php --- <?php // // +---------------------------------------------------------------------+ // | phpOpenTracker - The Website Traffic and Visitor Analysis Solution | // +---------------------------------------------------------------------+ // | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. | // +---------------------------------------------------------------------+ // | This source file is subject to the phpOpenTracker Software License, | // | Version 1.0, that is bundled with this package in the file LICENSE. | // | If you did not receive a copy of this file, you may read it online | // | at http://www.phpopentracker.de/license.html. | // +---------------------------------------------------------------------+ // // $Id: PlotTop.php,v 1.1 2003/11/23 18:15:20 bergmann Exp $ // /** * phpOpenTracker API - Plot Top * * @author Sebastian Bergmann <[email protected]> * @version $Revision: 1.1 $ * @since phpOpenTracker 1.0.0 */ class phpOpenTracker_API_Plugin_PlotTop extends phpOpenTracker_API_Plugin { /** * API Calls * * @var array $apiCalls */ public $apiCalls = array('top'); /** * API Type * * @var string $apiType */ public $apiType = 'plot'; /** * Runs the phpOpenTracker API call. * * @param array $parameters * @return mixed * @access public */ public function run($parameters) { } } // // "phpOpenTracker essenya, gul meletya; // Sebastian carneron PHP." // ?> --- NEW FILE: .cvsignore --- SearchEngines.php ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/