Path

ez projects / xrowcdn / forum / general / minor spelling error patch...


Minor spelling error patch - clound => cloud

You need to be logged in to post messages in the forums. New users may register here.

Geoff Bentley

Member since:
08 December 2007

Posts: 47

Saturday 01 October 2011 10:08:10 pm




 

Index: extension/xrowcdn/settings/xrowcdn.ini.append.php


===================================================================


--- extension/xrowcdn/settings/xrowcdn.ini.append.php   (revision 38)


+++ extension/xrowcdn/settings/xrowcdn.ini.append.php   (working copy)


@@ -4,7 +4,7 @@


 AWSKey=AWSKey


 SecretKey=ThisIsTheSecretKey


 ImplementationAlias[]


-ImplementationAlias[xrowCloundFront]=xrowCloundFront


+ImplementationAlias[xrowCloudFront]=xrowCloudFront


 

 ### For now we only can have one rule for DatabaseFiles


 RuleForDatabase=Rule-database


Index: extension/xrowcdn/classes/xrowcdn.php


===================================================================


--- extension/xrowcdn/classes/xrowcdn.php       (revision 38)


+++ extension/xrowcdn/classes/xrowcdn.php       (working copy)


@@ -8,7 +8,7 @@


     * @param $handlerName Defines the handlername default: xrowCloudFront


     * @throws Exception When an error occured


     */


-   static function &getInstance( $handlerName = 'xrowCloundFront' )


+   static function &getInstance( $handlerName = 'xrowCloudFront' )


    {


        if ( ! array_key_exists( 'xrowCDNInstance', $GLOBALS ) )


        {


Index: extension/xrowcdn/classes/plugins/xrowcloundfront.php


===================================================================


--- extension/xrowcdn/classes/plugins/xrowcloundfront.php       (revision 38)


+++ extension/xrowcdn/classes/plugins/xrowcloundfront.php       (working copy)


@@ -1,91 +0,0 @@


-<?php


-


-class xrowCloundFront implements xrowCDNInterface


-{


-   private $vars = array();


-   private $ini;


-   private $s3;


-


-   /**


-    * Constructor


-    */


-   function __construct( $ini )


-   {


-       $awskey = $ini->variable( 'Settings', 'AWSKey' );


-       $secretkey = $ini->variable( 'Settings', 'SecretKey' );


-       $this->vars = array( 

-           "aws" => $awskey , 

-           "secret" => $secretkey 

-       );


-       $this->ini = $ini;


-       /* try force loading of zend framework */


-       if ( class_exists( 'Zend_Service_Amazon_S3' ) )


-       {


-           $this->s3 = new Zend_Service_Amazon_S3( $awskey, $secretkey );


-       }


-       else


-       {


-           require_once ( 'Zend/Loader.php' );


-           spl_autoload_register( array( 

-               'Zend_Loader' , 

-               'autoload' 

-           ) );


-           $this->s3 = new Zend_Service_Amazon_S3( $awskey, $secretkey );


-       }


-    

-   }


-


-   /**


-    * Gets all files stored in the namespace / bucket in an array.


-    *


-    * @param $namespace Defines the name of the namespace / bucket.


-    * @throws Exception When an error occured


-    */


-   function getAllDistributedFiles( $namespace )


-   {


-       return $this->s3->getObjectsByBucket( $namespace );


-   }


-


-   /**


-    * Clears all files out of the namespace / bucket


-    *


-    * @param $namespace Defines the name of the namespace / bucket.


-    * @throws Exception When an error occured


-    */


-   function clean( $bucketName )


-   {


-      if( $bucketName )


-      {


-           $this->s3->cleanBucket( $bucketName );


-      }


-   }


-


-   /**


-    * Uploads a file into the bucket


-    *


-    * @param $bucket Defines the name of the namespace / bucket.


-    * @param $file Defines the file (full path) to put into the namespace / bucket.


-    * @param $remotepath Defines the remote location in the bucket / namespace to put the file into (without leading bucket).


-    * @throws Exception When an error occured


-    */


-   function put( $file, $remotepath, $bucket, $isgzip = false )


-   {


-      if( $isgzip )


-      {


-              $this->s3->putFile( $file, $bucket . "/" . $remotepath, array( 

-               Zend_Service_Amazon_S3::S3_ACL_HEADER => Zend_Service_Amazon_S3::S3_ACL_PUBLIC_READ,


-               'Cache-Control' => 'max-age=290304000, public', 'Content-Encoding' => 'gzip'


-           ) );


-      }


-      else


-      {


-              $this->s3->putFile( $file, $bucket . "/" . $remotepath, array( 

-                  Zend_Service_Amazon_S3::S3_ACL_HEADER => Zend_Service_Amazon_S3::S3_ACL_PUBLIC_READ,


-                  'Cache-Control' => 'max-age=290304000, public'


-              ) );


-      }


-   }


-


-}


-


-?>


\ No newline at end of file


Index: extension/xrowcdn/classes/plugins/xrowcloudfront.php


===================================================================


--- extension/xrowcdn/classes/plugins/xrowcloudfront.php        (revision 38)


+++ extension/xrowcdn/classes/plugins/xrowcloudfront.php        (working copy)


@@ -1,6 +1,6 @@


 <?php


 

-class xrowCloundFront implements xrowCDNInterface


+class xrowCloudFront implements xrowCDNInterface


 {


    private $vars = array();


    private $ini;


Up

You need to be logged in to post messages in the forums. New users may register here.