public function __construct(array $options = array()) { if (!isset($options['default_cache_config'])) { $options['default_cache_config'] = 'cache/aws'; } if (!isset($options['key']) && Kwf_Config::getValue('aws.key')) { $options['key'] = Kwf_Config::getValue('aws.key'); } if (!isset($options['secret']) && Kwf_Config::getValue('aws.secret')) { $options['secret'] = Kwf_Config::getValue('aws.secret'); } parent::__construct($options); }
/** * Method: __construct() * The constructor * * Access: * public * * Parameters: * queue - _string_ (Optional) The NAME for the queue to revolve around. Set as null if you plan to create a new queue, as it will be auto-set. * key - _string_ (Optional) Your Amazon API Key. If blank, it will look for the <AWS_KEY> constant. * secret_key - _string_ (Optional) Your Amazon API Secret Key. If blank, it will look for the <AWS_SECRET_KEY> constant. * * Returns: * _boolean_ false if no valid values are set, otherwise true. * * See Also: * Example Usage - http://tarzan-aws.com/docs/examples/sqsqueue/__construct.phps */ public function __construct($queue = null, $key = null, $secret_key = null) { $this->queue_url = SQS_DEFAULT_URL . '/' . $queue; return parent::__construct($key, $secret_key); }
/** * Method: __construct() * The constructor * * Access: * public * * Parameters: * queue - _string_ (Optional) The NAME for the queue to revolve around. Set as null if you plan to create a new queue, as it will be auto-set. * key - _string_ (Optional) Your Amazon API Key. If blank, it will look for the <AWS_KEY> constant. * secret_key - _string_ (Optional) Your Amazon API Secret Key. If blank, it will look for the <AWS_SECRET_KEY> constant. * * Returns: * _boolean_ false if no valid values are set, otherwise true. * * Examples: * example::sqsqueue/5_send_message.phpt: * example::sqsqueue/7_receive_message.phpt: * example::sqsqueue/8_delete_message.phpt: */ public function __construct($queue = null, $key = null, $secret_key = null) { $this->queue_name = $queue; return parent::__construct($key, $secret_key); }