cakephp - AWS PHP SDK deleteMatchingObjects() does not return count -


the aws php sdk documentation deletematchingobjects states returns integer: "returns number of deleted keys"

http://docs.aws.amazon.com/aws-sdk-php/latest/class-aws.s3.s3client.html#_deletematchingobjects

my media deleted empty value i'm supposed count of deleted objects. doing wrong?

this in beforedelete method of cakephp 2.x model behavior.

$s3 = new aws\sdk(array('version' => 'latest', 'region'  => 'us-west-1', 'credentials' => array('key' => $this->s3key, 'secret' => $this->s3secret))); $client = $s3->creates3(); $delete = $client->deletematchingobjects($this->s3readbucket, $this->filegroupprefix($model->name, $model->id)); $this->__logger($delete); 


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -