Пример #1
0
 public function __construct()
 {
     // Load account keys.
     $account = Services_Amazon_Account::getInstance();
     $this->_aws_access_key = $account->getAccessKey();
     $this->_aws_secret_key = $account->getSecretKey();
     return true;
 }
Пример #2
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }