Exemplo n.º 1
0
 function __construct($resultSet, $stmt = null, $parameterNames = array())
 {
     parent::__construct($resultSet);
     $this->_stmt = $stmt;
     if ($stmt) {
         $this->_usesMysqlnd = is_callable(array($stmt, 'get_result'));
     }
     $this->parameterNames = $parameterNames;
 }
Exemplo n.º 2
0
 /**
  * finish to initialise a record set. Could be redefined in child class
  * to do additionnal processes
  * @param jDbResultSet $rs the record set
  */
 protected function finishInitResultSet($rs)
 {
     $rs->setFetchMode(8, $this->_DaoRecordClassName);
 }
Exemplo n.º 3
0
 public function __construct($stmtId, $cnt = null)
 {
     $this->_cnt = $cnt;
     parent::__construct($stmtId);
 }
/**
 * modifier plugin :  display count of a DbResultSet Object (how many records)
 *
 * <pre>{$myarray|count_records}</pre>
 * @param jDbResultSet $DbResultSet
 * @return integer
 */
function jtpl_modifier_common_count_records($DbResultSet)
{
    return $DbResultSet->rowCount();
}
Exemplo n.º 5
0
 /**
  * @param SQLite3Result $result
  * @param SQLite3Stmt $stmt
  */
 function __construct($result, $stmt = null)
 {
     parent::__construct($result);
     $this->_stmt = $stmt;
 }