Ejemplo n.º 1
0
 /**
  * Return an object property or a field of the current row
  *
  * @param string $strKey The field name
  *
  * @return mixed|null The field value or null
  */
 public function __get($strKey)
 {
     switch ($strKey) {
         case 'query':
             return $this->strQuery;
             break;
         case 'numRows':
             return $this->count();
             break;
         case 'numFields':
             return $this->resResult->columnCount();
             break;
         case 'isModified':
             return $this->blnModified;
             break;
         default:
             if (empty($this->arrCache)) {
                 $this->next();
             }
             if (isset($this->arrCache[$strKey])) {
                 return $this->arrCache[$strKey];
             }
             break;
     }
     return null;
 }
Ejemplo n.º 2
0
 public function columnCount()
 {
     return $this->stmt->columnCount();
 }
Ejemplo n.º 3
0
 public function columnCount()
 {
     return $this->wrapped->columnCount();
 }