/** * Create a Database\Result object. * * @param resource $database The connection resource. * * @param FakeResult $resResult The database result. * * @param string $strQuery The query string. */ public function __construct($database, $resResult, $strQuery) { $this->database = $database; $this->result = $resResult; $this->query = $this->database->getQueryCollection()->findQuery($strQuery); $this->cursor = 0; }
/** * {@inheritdoc} * * @SuppressWarnings(PHPMD.CamelCaseMethodName) */ protected function insert_id() { $query = $this->database->getQueryCollection()->findQuery($this->strQuery); if ($query) { return $query->result()->getRow($query->result()->count()); } return null; }