From af27d5916b005123208d23a301a09c5e501ba327 Mon Sep 17 00:00:00 2001 From: Lorenzo Aiello Date: Sun, 25 May 2014 21:07:20 -0700 Subject: [PATCH 1/2] Update README.markdown added docs regarding listing all containers --- README.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.markdown b/README.markdown index 9c67f2d..01de414 100755 --- a/README.markdown +++ b/README.markdown @@ -43,6 +43,10 @@ $objectStorage = new ObjectStorage($host, $username, $password, $options); ## Basic CRUD ```php +$containerList = $objectStorage->with()->get(); + +$containerName = $containerList->getPath(); + $shallowContainer = $objectStorage->with('example_container'); $newContainer = $shallowContainer->create(); From 06341ae04230adcfb8bf94c7cc61a06bbefcf0a2 Mon Sep 17 00:00:00 2001 From: Lorenzo Aiello Date: Sun, 25 May 2014 22:07:43 -0700 Subject: [PATCH 2/2] Update README.markdown added remark about default number of records when traversing containers/objects --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 01de414..83d117d 100755 --- a/README.markdown +++ b/README.markdown @@ -134,7 +134,7 @@ $results = $objectStorage05->with('')->setContext('cdn') $container = $objectStorage->with('another_container')->get(); if (count($container->objects) > 0) { foreach ($container->objects as $shallowObject) { - $object = $shallowObject->get(); + $object = $shallowObject->get(); // Defaults to 100 results, pass a parameter to override eg. ->get(500) echo $object->getUrl(); echo $object->getBody();