MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Statement_Common

Source Location: /MDB2-2.2.0/MDB2.php

Class Overview


The common statement class for MDB2 statement objects


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 3782]
The common statement class for MDB2 statement objects


[ Top ]


Class Variables

$db =

[line 3786]


Type:   mixed


[ Top ]

$is_manip =

[line 3794]


Type:   mixed


[ Top ]

$limit =

[line 3792]


Type:   mixed


[ Top ]

$offset =

[line 3793]


Type:   mixed


[ Top ]

$query =

[line 3788]


Type:   mixed


[ Top ]

$result_types =

[line 3789]


Type:   mixed


[ Top ]

$statement =

[line 3787]


Type:   mixed


[ Top ]

$types =

[line 3790]


Type:   mixed


[ Top ]

$values = array()

[line 3791]


Type:   mixed


[ Top ]



Method Detail

MDB2_Statement_Common (Constructor)   [line 3821]

MDB2_Statement_Common MDB2_Statement_Common( mixed &$db, mixed &$statement, mixed $positions, mixed $query, mixed $types, mixed $result_types, [mixed $is_manip = false], [mixed $limit = null], [mixed $offset = null])

PHP 4 Constructor

[ Top ]

bindParam   [line 3900]

mixed bindParam( int $parameter, mixed &$value, [string $type = null])

Bind a variable to a parameter of a prepared query.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

Parameters:

int   $parameter     the order number of the parameter in the query statement. The order number of the first parameter is 1.
mixed   &$value     variable that is meant to be bound to specified parameter. The type of the value depends on the $type argument.
string   $type     specifies the type of the field

[ Top ]

bindParamArray   [line 3932]

mixed bindParamArray( array &$values, [array $types = null])

Bind the variables of multiple a parameter of a prepared query in bulk.

Parameters:

array   &$values     specifies all necessary information for bindParam() the array elements must use keys corresponding to the number of the position of the parameter.
array   $types     specifies the types of the fields

[ Top ]

bindValue   [line 3842]

mixed bindValue( int $parameter, mixed &$value, [string $type = null])

Set the value of a parameter of a prepared query.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

Parameters:

int   $parameter     the order number of the parameter in the query statement. The order number of the first parameter is 1.
mixed   &$value     value that is meant to be assigned to specified parameter. The type of the value depends on the $type argument.
string   $type     specifies the type of the field

[ Top ]

bindValueArray   [line 3874]

mixed bindValueArray( array &$values, [array $types = null])

Set the values of multiple a parameter of a prepared query in bulk.

Parameters:

array   &$values     specifies all necessary information for bindValue() the array elements must use keys corresponding to the number of the position of the parameter.
array   $types     specifies the types of the fields

[ Top ]

execute   [line 3958]

mixed &execute( [array $values = null], [mixed $result_class = true], [mixed $result_wrap_class = false])

Execute a prepared query statement.
  • Return: a result handle or MDB2_OK on success, a MDB2 error on failure
  • Access: public

Parameters:

array   $values     specifies all necessary information for bindParam() the array elements must use keys corresponding to the number of the position of the parameter.
mixed   $result_class     specifies which result class to use
mixed   $result_wrap_class     specifies which class to wrap results in

[ Top ]

free   [line 4032]

mixed free( )

Release resources allocated for the specified prepared query.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]


Documentation generated on Sun, 23 Jul 2006 03:41:40 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.