CMC for PHP
  • Namespace
  • Class
  • Tree

Namespaces

  • cmc
    • core
      • ui
    • db
      • mysqli
    • error
    • ui
      • widgets
  • PHP

Classes

  • database
  • databasefactory
  • dataenv
  • dataquery
  • datatable

Interfaces

  • datasource
  • IBrowsable
  • ICreatable
  • IFilter
  • IMetaInfo
  • IPrimaryKey
  • IUpdatable

Exceptions

  • DatabaseException

CMC for PHP is a web framework for PHP.
Copyright (c) 2014 by Calmarsoft company http://calmarsoft.com (FRANCE). All rights reserved.
Project information available here.

Class dataquery

abstract datasource

need to implement the Iterator methods

cmc\db\dataquery implements cmc\db\datasource

Direct known subclasses

cmc\db\mysqli\dataquery_mysqli

Abstract
Namespace: cmc\db
Copyright: Copyright (c) Calmarsoft company (FRANCE) (http://calmarsoft.com)
License: GNU General Public License version 3
Version: 0.9
Link: CMC Project
Located at db/dataquery.php

Methods summary

public
# __construct( )
abstract public
# execute( )

executes the datasource

executes the datasource

abstract public array
# fetch_assoc( )

fetch a record, and returns an associative array of values

fetch a record, and returns an associative array of values

Returns

array
abstract public type
# setparams( type $params )

updates parameter bindings

updates parameter bindings

Parameters

$params
type
$params

Returns

type
public array|null
# current( )

returns the last fetched row

returns the last fetched row

Returns

array|null

Implementation of

Iterator::current()
public integer
# key( )

Iterator: returns the position

Iterator: returns the position

Returns

integer

Implementation of

Iterator::key()
public type
# next( )

Iterator: returns the next record

Iterator: returns the next record

Returns

type

Implementation of

Iterator::next()
public boolean
# first( )

Iterator: rewind and returns the first record

Iterator: rewind and returns the first record

Returns

boolean
public
# rewind( )

refresh query (in this implementation: re-execute)

refresh query (in this implementation: re-execute)

Implementation of

Iterator::rewind()
public
# valid( )

checks if current record is available

checks if current record is available

Implementation of

Iterator::valid()
public
# dataenv( )

Methods inherited from cmc\db\datasource

close()

Magic methods summary

Constants summary

string className __CLASS__
#

Properties summary

protected mixed $_currentrow
#
protected mixed $_position
#
protected cmc\db\database $_db
#

underlying database

underlying database

CMC for PHP API documentation generated by ApiGen 2.8.0