...
|
...
|
@@ -15,11 +15,28 @@ class MongoResult |
|
|
|
|
|
public function lastInsertId()
|
|
|
{
|
|
|
return $this->__get('_id')->__toString();
|
|
|
}
|
|
|
|
|
|
public function lastInsertObject()
|
|
|
{
|
|
|
return $this->__get('_id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @return bool
|
|
|
*/
|
|
|
public function getStatus()
|
|
|
{
|
|
|
$status = $this->__get('status');
|
|
|
if (!empty($status['ok']) && $status['ok'] == 1) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
public function getStatusData()
|
|
|
{
|
|
|
return $this->__get('status');
|
|
|
}
|
|
|
|
...
|
...
|
|