26 #require_once 'Zend/Db/Statement.php'; 58 $this->_stmt = $this->_adapter->getConnection()->prepare($sql);
59 }
catch (PDOException $e) {
60 #require_once 'Zend/Db/Statement/Exception.php'; 79 return $this->_stmt->bindColumn($column, $param);
81 return $this->_stmt->bindColumn($column, $param,
$type);
83 }
catch (PDOException $e) {
84 #require_once 'Zend/Db/Statement/Exception.php'; 103 if (
$type ===
null) {
105 $type = PDO::PARAM_BOOL;
107 $type = PDO::PARAM_NULL;
109 $type = PDO::PARAM_INT;
111 $type = PDO::PARAM_STR;
115 }
catch (PDOException $e) {
116 #require_once 'Zend/Db/Statement/Exception.php'; 132 if (is_string($parameter) && $parameter[0] !=
':') {
133 $parameter =
":$parameter";
139 if (
$type ===
null) {
140 return $this->_stmt->bindValue($parameter,
$value);
142 return $this->_stmt->bindValue($parameter,
$value,
$type);
144 }
catch (PDOException $e) {
145 #require_once 'Zend/Db/Statement/Exception.php'; 159 return $this->_stmt->closeCursor();
160 }
catch (PDOException $e) {
161 #require_once 'Zend/Db/Statement/Exception.php'; 176 return $this->_stmt->columnCount();
177 }
catch (PDOException $e) {
178 #require_once 'Zend/Db/Statement/Exception.php'; 193 return $this->_stmt->errorCode();
194 }
catch (PDOException $e) {
195 #require_once 'Zend/Db/Statement/Exception.php'; 210 return $this->_stmt->errorInfo();
211 }
catch (PDOException $e) {
212 #require_once 'Zend/Db/Statement/Exception.php'; 228 return $this->_stmt->execute(
$params);
230 return $this->_stmt->execute();
232 }
catch (PDOException $e) {
233 #require_once 'Zend/Db/Statement/Exception.php'; 234 $message = sprintf(
'%s, query was: %s', $e->getMessage(), $this->_stmt->queryString);
248 public function fetch($style =
null, $cursor =
null, $offset =
null)
250 if ($style ===
null) {
254 return $this->_stmt->fetch($style, $cursor, $offset);
255 }
catch (PDOException $e) {
256 #require_once 'Zend/Db/Statement/Exception.php'; 268 return new IteratorIterator($this->_stmt);
279 public function fetchAll($style =
null, $col =
null)
281 if ($style ===
null) {
285 if ($style == PDO::FETCH_COLUMN) {
289 return $this->_stmt->fetchAll($style, $col);
291 return $this->_stmt->fetchAll($style);
293 }
catch (PDOException $e) {
294 #require_once 'Zend/Db/Statement/Exception.php'; 309 return $this->_stmt->fetchColumn($col);
310 }
catch (PDOException $e) {
311 #require_once 'Zend/Db/Statement/Exception.php'; 328 }
catch (PDOException $e) {
329 #require_once 'Zend/Db/Statement/Exception.php'; 344 return $this->_stmt->getAttribute($key);
345 }
catch (PDOException $e) {
346 #require_once 'Zend/Db/Statement/Exception.php'; 361 return $this->_stmt->getColumnMeta($column);
362 }
catch (PDOException $e) {
363 #require_once 'Zend/Db/Statement/Exception.php'; 379 return $this->_stmt->nextRowset();
380 }
catch (PDOException $e) {
381 #require_once 'Zend/Db/Statement/Exception.php'; 397 return $this->_stmt->rowCount();
398 }
catch (PDOException $e) {
399 #require_once 'Zend/Db/Statement/Exception.php'; 415 return $this->_stmt->setAttribute($key, $val);
416 }
catch (PDOException $e) {
417 #require_once 'Zend/Db/Statement/Exception.php'; 431 $this->_fetchMode =
$mode;
433 return $this->_stmt->setFetchMode(
$mode);
434 }
catch (PDOException $e) {
435 #require_once 'Zend/Db/Statement/Exception.php'; fetchObject($class='stdClass', array $config=array())
elseif(isset( $params[ 'redirect_parent']))
_bindParam($parameter, &$variable, $type=null, $length=null, $options=null)
$_option $_optionId $class
fetchAll($style=null, $col=null)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
bindValue($parameter, $value, $type=null)
_execute(array $params=null)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
fetch($style=null, $cursor=null, $offset=null)
bindColumn($column, &$param, $type=null)