I have searched the web, the PHP manual and checked some reference books,
but I can find any satisfactory answer to my question.
Perhaps It my poor grasp of the constructor concept and it's proper application?
Here is the issue:
I have a an existing class constructor definition that I wish to overload.
function__construct( $table, $key, &$db )
{
$this->_tbl = $table;
$this->_tbl_key = $key;
$this->_db =& $db;
}
when it is called to extend the class, they use :
function __construct(&$db)
{
parent::__construct('myTableName','my_id',$db);
}
This is used to pass specific variables to the database object (&$db) ???
I would like to overload this to take one more column argument, so that two "search" variables may be used, the primary key and and indexed column.
what is the correct way to do this?
Also why do they use the parent:: operator, what is theory of operation here?