yii\db\DataReader::read PHP Method

read() public method

Advances the reader to the next row in a result set.
public read ( ) : array
return array the current row, false if no more row available
    public function read()
    {
        return $this->_statement->fetch();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Advances the reader to the next row in a result set.
  * @return array the current row, false if no more row available
  */
 public function read()
 {
     //Try..Catch to prevent Function sequence error: -11067
     try {
         return parent::read();
     } catch (\Exception $ex) {
     }
     return false;
 }
All Usage Examples Of yii\db\DataReader::read