File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/api/class.transfer.php
<?php
/**
* This file contains the iwp_transfer class for use in IWP.
*
* @version $Id$
*
*
* @package IWP
* @subpackage IWP_API
*/
/**
* Extended InterspireTransfer Class
* This class extends the InterspireTransfer class to include auto detection for the transfer method setting in IWP.
*
* @package IWP
* @property iwp_transfer
* @subpackage IWP_API
*/
class iwp_transfer extends InterspireTransfer {
/**
* Instance
* This static variable holds the current instance of this object being loaded.
* So using the getInstance function anywhere will return the very same instance.
*
* @var object Instance
*/
public static $Instance;
/**
* getInstance
* This is a static function that sets up the class instance and stores it to the static variable. It will then return that instantiation in the future.
*
* @return iwp_transfer Returns the instantiated object
**/
public static function getInstance(){
if(!isset(self::$Instance)){
self::$Instance = new self();
}
return self::$Instance;
}
/**
* The Constructor
* This checks the application's config to see if they have explicitly set a method for transfering data
*
* @return iwp_transfer
*/
public function __construct(){
$method = iwp_config::Get('curlorfopen');
if($method == 'curl') {
$this->UseCurl();
}elseif($method == 'fopen') {
$this->UseFopen();
}
}
}