phpDocumentor db
[ class tree: db ] [ index: db ] [ all elements ]

Class: Command

Source Location: /myphp-1.9/myphp-1.9-db/html/mysql/Command.php

Class Command

Class Overview

The Command towards the mysql database

The resultset is returned via the DataReader object

  1. Usage:
  2. $command = new Command($sql);
  3. $datareader = $command->getDataReader();
  4.  
  5. And print any data out
  6. print $datareader->getNumRows();;

Located in /myphp-1.9/myphp-1.9-db/html/mysql/Command.php [line 35]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
String   $sql  

[ Top ]
Method Summary
Command   Command()   Constructor
DataReader   getDataReader()   Creates a DataReader object.

[ Top ]
Properties
String   $sql = '' [line 39]

[ Top ]
Methods
Constructor Command  [line 46]

  Command Command( Object $sql  )

Constructor

Parameters:
Object   $sql:  The resultset to use


[ Top ]
getDataReader  [line 57]

  DataReader getDataReader( )

Creates a DataReader object.

Open a connection to the database and perform the query. If any data is found, the DataReader object is populated. return the DataReader object


API Tags:
Return:  The Data Reader object


[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:03:19 +0100 by phpDocumentor 1.3.0RC3