. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_PartnerStatistics extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaPartnerStatistics'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; if(count($xml->packageBandwidthAndStorage)) $this->packageBandwidthAndStorage = (int)$xml->packageBandwidthAndStorage; if(count($xml->hosting)) $this->hosting = (float)$xml->hosting; if(count($xml->bandwidth)) $this->bandwidth = (float)$xml->bandwidth; if(count($xml->usage)) $this->usage = (int)$xml->usage; if(count($xml->usagePercent)) $this->usagePercent = (float)$xml->usagePercent; if(count($xml->reachedLimitDate)) $this->reachedLimitDate = (int)$xml->reachedLimitDate; } /** * Package total allowed bandwidth and storage * * * @var int * @readonly */ public $packageBandwidthAndStorage = null; /** * Partner total hosting in GB on the disk * * * @var float * @readonly */ public $hosting = null; /** * Partner total bandwidth in GB * * * @var float * @readonly */ public $bandwidth = null; /** * total usage in GB - including bandwidth and storage * * * @var int * @readonly */ public $usage = null; /** * Percent of usage out of partner's package. if usage is 5GB and package is 10GB, this value will be 50 * * * @var float * @readonly */ public $usagePercent = null; /** * date when partner reached the limit of his package (timestamp) * * * @var int * @readonly */ public $reachedLimitDate = null; }