コード例 #1
0
ファイル: PDOStatement.php プロジェクト: rtshome/pgbabylon
 public function getAttribute($attribute)
 {
     if ($this->_statement instanceof \PDOStatement) {
         return $this->_statement->getAttribute($attribute);
     }
     return null;
 }
コード例 #2
0
ファイル: Pdo.php プロジェクト: jorgenils/zend-framework
 /**
  * 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());
     }
 }
コード例 #3
0
 public function getFetchSize()
 {
     $this->checkClosed();
     return $this->stmt->getAttribute(\PDO::ATTR_PREFETCH);
 }
コード例 #4
0
ファイル: PDOStatement.php プロジェクト: compeek/pdo-wrapper
 /**
  * @param int $attribute
  * @return mixed
  * @throws \Compeek\PDOWrapper\NotConnectedException
  */
 public function getAttribute($attribute)
 {
     $this->requireConnection();
     return $this->pdoStatement->getAttribute($attribute);
 }
コード例 #5
0
 /**
  * @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);
 }
コード例 #6
0
 public function getCursorName()
 {
     $this->checkClosed();
     return String::asWrapper($this->pdoStmt->getAttribute(\PDO::ATTR_CURSOR_NAME));
 }