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

Class: MDB2_Statement_Common

Source Location: /MDB2-2.0.0beta4/MDB2.php

Class Overview




Variables

Methods


Child classes:

Inherited Variables

Inherited Methods


Class Details

[line 2925]


[ Top ]


Class Variables

$db =

[line 2927]


Type:   mixed


[ Top ]

$query =

[line 2929]


Type:   mixed


[ Top ]

$result_types =

[line 2930]


Type:   mixed


[ Top ]

$row_limit =

[line 2932]


Type:   mixed


[ Top ]

$row_offset =

[line 2931]


Type:   mixed


[ Top ]

$statement =

[line 2928]


Type:   mixed


[ Top ]

$types =

[line 2933]


Type:   mixed


[ Top ]

$values =

[line 2934]


Type:   mixed


[ Top ]



Method Detail

MDB2_Statement_Common (Constructor)   [line 2950]

MDB2_Statement_Common MDB2_Statement_Common( &$db, &$statement, $query, $types, $result_types)


Parameters:

   &$db   — 
   &$statement   — 
   $query   — 
   $types   — 
   $result_types   — 

[ Top ]

__construct (Constructor)   [line 2941]

MDB2_Statement_Common __construct( &$db, &$statement, $query, $types, $result_types)

Constructor

Parameters:

   &$db   — 
   &$statement   — 
   $query   — 
   $types   — 
   $result_types   — 

[ Top ]

bindParam   [line 2969]

mixed bindParam( 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 ]

bindParamArray   [line 2997]

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

Set the values of multiple a parameter of a prepared query in bulk.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • See: bindParam()
  • Access: public

Parameters:

array   $values   —  array thats specifies all necessary infromation 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 ]

execute   [line 3018]

mixed &execute( [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

Overridden in child classes as:

MDB2_Statement_ibase::execute()
Execute a prepared query statement.
MDB2_Statement_oci8::execute()
Execute a prepared query statement.

Parameters:

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 3053]

mixed free( )

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

Overridden in child classes as:

MDB2_Statement_oci8::free()
Release resources allocated for the specified prepared query.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:20:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.