public function getAttribute($attribute) { if ($this->_statement instanceof \PDOStatement) { return $this->_statement->getAttribute($attribute); } return null; }
/** * Retrieve a statement attribute. * * @param integer $key Attribute name. * @return mixed Attribute value. * @throws Zend_Db_Statement_Exception */ public function getAttribute($key) { try { return $this->_stmt->getAttribute($key); } catch (PDOException $e) { require_once 'Zend/Db/Statement/Exception.php'; throw new Zend_Db_Statement_Exception($e->getMessage()); } }
public function getFetchSize() { $this->checkClosed(); return $this->stmt->getAttribute(\PDO::ATTR_PREFETCH); }
/** * @param int $attribute * @return mixed * @throws \Compeek\PDOWrapper\NotConnectedException */ public function getAttribute($attribute) { $this->requireConnection(); return $this->pdoStatement->getAttribute($attribute); }
/** * @param int $attribute * @return mixed */ public function getAttribute($attribute) { $archLog = array('method' => 'PDOStatement::getAttribute', 'input' => array('attribute' => $attribute), 'output' => $this->PDOStatement->getAttribute($attribute), 'pointer' => $this->assignPointerString()); return self::setLogReturnOutput($archLog); }
public function getCursorName() { $this->checkClosed(); return String::asWrapper($this->pdoStmt->getAttribute(\PDO::ATTR_CURSOR_NAME)); }