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

Class: MDB2_Statement_Common

Source Location: /MDB2-2.0.2/MDB2.php

Class Overview


The common statement class for MDB2 statement objects


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Class Variables

$db =

[line 3310]


Type:   mixed


[ Top ]

$is_manip =

[line 3318]


Type:   mixed


[ Top ]

$limit =

[line 3316]


Type:   mixed


[ Top ]

$offset =

[line 3317]


Type:   mixed


[ Top ]

$query =

[line 3312]


Type:   mixed


[ Top ]

$result_types =

[line 3313]


Type:   mixed


[ Top ]

$statement =

[line 3311]


Type:   mixed


[ Top ]

$types =

[line 3314]


Type:   mixed


[ Top ]

$values = array()

[line 3315]


Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 3326]

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

Constructor

Parameters:

   &$db   — 
   &$statement   — 
   $positions   — 
   $query   — 
   $types   — 
   $result_types   — 
   $is_manip   — 
   $limit   — 
   $offset   — 

[ Top ]

MDB2_Statement_Common (Constructor)   [line 3345]

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

PHP 4 Constructor

Parameters:

   &$db   — 
   &$statement   — 
   $positions   — 
   $query   — 
   $types   — 
   $result_types   — 
   $is_manip   — 
   $limit   — 
   $offset   — 

[ Top ]

bindParam   [line 3418]

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

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
   &$value   — 

[ Top ]

bindParamArray   [line 3448]

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

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

Parameters:

array   $values   —  array that 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
   &$values   — 

[ Top ]

bindValue   [line 3364]

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

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
   &$value   — 

[ Top ]

bindValueArray   [line 3394]

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

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

Parameters:

array   $values   —  array that 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
   &$values   — 

[ Top ]

execute   [line 3472]

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   —  array that 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   —  string which specifies which result class to use
mixed   $result_wrap_class   —  string which specifies which class to wrap results in

[ Top ]

free   [line 3540]

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 Mon, 11 Mar 2019 14:39:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.