Anonymous avatar Anonymous committed 4f8292e

get_bucket_metadata .. bucket_info .. because attention to detail is important. :)

Comments (0)

Files changed (1)

client_lib/jiak.php

                 array("Content-type: application/json")));
     }
     
-    function bucket_info($bucket) {
-        return $this->_expect(200,
-            $this->_do_req("GET", $this->JKP . urlencode($bucket)));
-    }
-    
     function store_all($ar, $w=2, $dw=2) {
         foreach($ar as $o) {
             $this->store($o, $w, $dw);
     }
 
     function list_bucket($bucket) {
-        $o = $this->get_bucket_metadata($bucket, true);
+        $o = $this->bucket_info($bucket, true);
         return $o['keys'];
     }
 
     function get_bucket_schema($bucket) {
-        $o = $this->get_bucket_metadata($bucket, false);
+        $o = $this->bucket_info($bucket, false);
         return $o['schema'];
     }
 
-    function get_bucket_metadata($bucket, $with_keys) {
+    function bucket_info($bucket, $with_keys=true) {
         $resp = $this->_do_req("GET",
                     $this->JKP . urlencode($bucket) . "/" .
                     ($with_keys===true?"":"?keys=false"));
 
 
 /*
-
     // jiak.php example
     //
     // this example only works if you
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.