Exemplo n.º 1
0
 /**
  * (PHP 5 &gt;= 5.0.0)<br/>
  * Checks if current position is valid
  * @link http://php.net/manual/en/iterator.valid.php
  * @return boolean The return value will be casted to boolean and then evaluated.
  * Returns true on success or false on failure.
  */
 public function valid()
 {
     if ($this->stored !== null) {
         return $this->cursor >= 0 && $this->cursor < count($this->stored);
     }
     return $this->cursor >= 0 && $this->connection->getConnection()->more_results();
 }
Exemplo n.º 2
0
 /**
  * Get the PHP MySQLi object
  *
  * @return \mysqli
  * @throws ConnectionException
  */
 public function getMysqliConnection()
 {
     return $this->connection->getConnection();
 }