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

Class: MDB2_Statement_Common

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

Class Overview




Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 2898]


[ Top ]


Class Variables

$db =

[line 2900]


Type:   mixed


[ Top ]

$query =

[line 2902]


Type:   mixed


[ Top ]

$result_types =

[line 2903]


Type:   mixed


[ Top ]

$row_limit =

[line 2906]


Type:   mixed


[ Top ]

$row_offset =

[line 2907]


Type:   mixed


[ Top ]

$statement =

[line 2901]


Type:   mixed


[ Top ]

$types =

[line 2904]


Type:   mixed


[ Top ]

$values =

[line 2905]


Type:   mixed


[ Top ]



Method Detail

MDB2_Statement_Common (Constructor)   [line 2925]

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


Parameters:

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

[ Top ]

__construct (Constructor)   [line 2914]

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

Constructor

Parameters:

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

[ Top ]

bindParam   [line 2944]

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

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

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 thats specifies all necessary infromation 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 3063]

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:19:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.