public function connectGuid($guid = null, $pass = null)
{
$this->_server->connectGuid($guid, $pass);
- $this->_count['connectGuid']++;
+ if (!isset($this->_count['connectGuid'])) {
+ $this->_count['connectGuid'] = 1;
+ } else {
+ $this->_count['connectGuid']++;
+ }
}
/**
*/
public function read($guid, array $attrs = array())
{
+ if (!isset($this->_count['read'])) {
+ $this->_count['read'] = 1;
+ } else {
+ $this->_count['read']++;
+ }
return $this->_server->read($guid);
- $this->_count['read']++;
}
/**
*/
public function readAttributes($guid, array $attrs)
{
+ if (!isset($this->_count['readAttributes'])) {
+ $this->_count['readAttributes'] = 1;
+ } else {
+ $this->_count['readAttributes']++;
+ }
return $this->_server->readAttributes($guid, $attrs);
- $this->_count['readAttributes']++;
}
/**
*/
public function find($query, array $params = array())
{
+ if (!isset($this->_count['find'])) {
+ $this->_count['find'] = 1;
+ } else {
+ $this->_count['find']++;
+ }
return $this->_server->find($query, $params);
- $this->_count['find']++;
}
/**
*/
public function findBelow($query, $parent, array $params = array())
{
+ if (!isset($this->_count['findBelow'])) {
+ $this->_count['findBelow'] = 1;
+ } else {
+ $this->_count['findBelow']++;
+ }
return $this->_server->findBelow($query, $parent, $params);
- $this->_count['findBelow']++;
}
/**
array $data
) {
$this->_server->save($object, $data);
- $this->_count['save']++;
+ if (!isset($this->_count['save'])) {
+ $this->_count['save'] = 1;
+ } else {
+ $this->_count['save']++;
+ }
}
/**
array $data
) {
$this->_server->add($object, $data);
- $this->_count['add']++;
+ if (!isset($this->_count['add'])) {
+ $this->_count['add'] = 1;
+ } else {
+ $this->_count['add']++;
+ }
}
/**
public function delete($guid)
{
$this->_server->delete($guid);
- $this->_count['delete']++;
+ if (!isset($this->_count['delete'])) {
+ $this->_count['delete'] = 1;
+ } else {
+ $this->_count['delete']++;
+ }
}
/**
public function rename($guid, $new)
{
$this->_server->rename($guid, $new);
- $this->_count['rename']++;
+ if (!isset($this->_count['rename'])) {
+ $this->_count['rename'] = 1;
+ } else {
+ $this->_count['rename']++;
+ }
}
/**
public function getSchema()
{
return $this->_server->getSchema();
- $this->_count['getSchema']++;
+ if (!isset($this->_count['getSchema'])) {
+ $this->_count['getSchema'] = 1;
+ } else {
+ $this->_count['getSchema']++;
+ }
}
/**