Zhamao Framework  3.0.0-beta1
A high-performance chatbot + web framework
DBStatement类 参考
类 DBStatement 继承关系图:
[图例]
DBStatement 的协作图:
[图例]

Public 成员函数

 __construct (private \PDOStatement $statement)
 
 closeCursor ()
 
 columnCount ()
 
 setFetchMode ($fetchMode, $arg2=null, $arg3=[])
 
 fetch ($fetchMode=\PDO::FETCH_ASSOC, $cursorOrientation=\PDO::FETCH_ORI_NEXT, $cursorOffset=0)
 
 fetchAll ($fetchMode=\PDO::FETCH_ASSOC, $fetchArgument=null, $ctorArgs=null)
 
 fetchColumn ($columnIndex=0)
 
 bindValue ($param, $value, $type=ParameterType::STRING)
 
 bindParam ($param, &$variable, $type=ParameterType::STRING, $length=null)
 
 errorCode ()
 
 errorInfo ()
 
 execute ($params=null)
 
 rowCount ()
 
 getIterator ()
 
 current ()
 

构造及析构函数说明

◆ __construct()

__construct ( private \PDOStatement  $statement)

成员函数说明

◆ bindParam()

bindParam (   $param,
$variable,
  $type = ParameterType::STRING,
  $length = null 
)

◆ bindValue()

bindValue (   $param,
  $value,
  $type = ParameterType::STRING 
)

◆ closeCursor()

closeCursor ( )

◆ columnCount()

columnCount ( )

◆ current()

current ( )
弃用:
最好不使用此方法,此方法可能存在 Bug
返回
mixed

◆ errorCode()

errorCode ( )

◆ errorInfo()

errorInfo ( )

◆ execute()

execute (   $params = null)

◆ fetch()

fetch (   $fetchMode = \PDO::FETCH_ASSOC,
  $cursorOrientation = \PDO::FETCH_ORI_NEXT,
  $cursorOffset = 0 
)

◆ fetchAll()

fetchAll (   $fetchMode = \PDO::FETCH_ASSOC,
  $fetchArgument = null,
  $ctorArgs = null 
)

◆ fetchColumn()

fetchColumn (   $columnIndex = 0)

◆ getIterator()

getIterator ( )

◆ rowCount()

rowCount ( )

◆ setFetchMode()

setFetchMode (   $fetchMode,
  $arg2 = null,
  $arg3 = [] 
)

该类的文档由以下文件生成: