Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => : 9000 19 Sep 2008, 19:45:21
-
Leggendo una guida...
sono arrivato a
In order to use the JTable::getInstance() method, we must override the JTable constructor with a constructor that has a single referenced parameter, the database object.
Costruttore classe astratta
function __construct( $table, $key, &$db )
{
$this->_tbl = $table;
$this->_tbl_key = $key;
$this->_db =& $db;
}
costruttore ridefinito
function __construct( &$db )
{
parent::__construct('#__Componente', 'id', $db);
}
non mi è chiaro perche' fare l'overriding del costruttore della classe astratta.... ???
grazie