aqui esta el ultimo de esta seccion.
Código PHP:
<?php
abstract class DbCommand {
private $Connection;
/******************************************************/
/* Member */
/******************************************************/
abstract public function get_CommandText ();
abstract public function set_CommandText ($value);
abstract public function get_CommandType ();
abstract public function set_CommandType ($value);
abstract public function ExecuteNonQuery ();
abstract public function ExecuteReader (); //TODO: No abstract.
abstract public function ExecuteScalar ();
public function get_Connection() {
return $this->Connection->get_Connection();
}
public function set_Connection($value) {
if( !($value instanceof MySqlConnection ) ) {
throw new Exception( 'el objeto debe implementar MySqlConnection' );
}
$this->Connection = $value;
}
}
?>
Enjoy It!!...