Phpfox_Cdn

Description

We use this class to store data on CDN services like Amazon S3. This can be items from photos, videos, songs, CSS files etc...

Example of storing a file:

  1.  Phpfox::getLib('cdn')->put('/var/www/file/sample.jpg');

Displaying an uploaded file:

  1.  <img src="<?php echo Phpfox::getLib('cdn')->getUrl('/var/www/file/sample.jpg')?>" />

  • author: Raymond Benc
  • version: $Id: cdn.class.php 1687 2010-07-22 03:13:27Z Raymond_Benc $
  • copyright: [PHPFOX_COPYRIGHT]

Located in /include/library/phpfox/cdn/cdn.class.php (line 29)


	
			
Variable Summary
 object $_oObject
Method Summary
 Phpfox_Cdn __construct ([array $aParams = array()])
 object Object &getInstance ()
Variables
object $_oObject = null (line 36)

Object of the CDN module.

  • access: private
Methods
Constructor __construct (line 43)

Based on what CDN module is selected here is where we load the CDN class and initiat the object.

  • access: public
Phpfox_Cdn __construct ([array $aParams = array()])
  • array $aParams: Array of any special params to pass to the module CDN class
getInstance (line 56)

Return the object of the CDN module object.

  • return: provided by the module class we loaded earlier.
  • access: public
object Object &getInstance ()

Documentation generated on Tue, 28 Sep 2010 10:36:38 +0200 by phpDocumentor 1.4.0a2