Commits

Anonymous committed 4f8292e

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

  • Participants
  • Parent commits 276d99c

Comments (0)

Files changed (1)

File 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