/** * Magic function to handle the setting of various properties. * * @internal */ public function __set($name, $value) { if ($name == 'operationTimeout') { return $this->me->setOption(COUCHBASE_CNTL_OP_TIMEOUT, $value); } else { if ($name == 'viewTimeout') { return $this->me->setOption(COUCHBASE_CNTL_VIEW_TIMEOUT, $value); } else { if ($name == 'durabilityInterval') { return $this->me->setOption(COUCHBASE_CNTL_DURABILITY_INTERVAL, $value); } else { if ($name == 'durabilityTimeout') { return $this->me->setOption(COUCHBASE_CNTL_DURABILITY_TIMEOUT, $value); } else { if ($name == 'httpTimeout') { return $this->me->setOption(COUCHBASE_CNTL_HTTP_TIMEOUT, $value); } else { if ($name == 'configTimeout') { return $this->me->setOption(COUCHBASE_CNTL_CONFIGURATION_TIMEOUT, $value); } else { if ($name == 'configDelay') { return $this->me->setOption(COUCHBASE_CNTL_CONFDELAY_THRESH, $value); } else { if ($name == 'configNodeTimeout') { return $this->me->setOption(COUCHBASE_CNTL_CONFIG_NODE_TIMEOUT, $value); } else { if ($name == 'htconfigIdleTimeout') { return $this->me->setOption(COUCHBASE_CNTL_HTCONFIG_IDLE_TIMEOUT, $value); } } } } } } } } } $trace = debug_backtrace(); trigger_error('Undefined property via __set(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_NOTICE); return null; }
/** * Retrieves bucket status information * * Returns an associative array of status information as seen * by the cluster for this bucket. The exact structure of the * returned data can be seen in the Couchbase Manual by looking * at the bucket /info endpoint. * * @return mixed The status information. */ public function info() { $path = "/pools/default/buckets/" . $this->_name; $res = $this->_me->http_request(2, 1, $path, NULL, 2); return json_decode($res, true); }