I want to make a class in my modules extending APP_DbObject and I'm wondering what is the accepted method to create a new instance of it.
For the deck class, the tutorial show this :
$this->mydeck = self::getNew( "module.common.deck" );
And I'm wondering what getNew() does this does not do :
$this->mydeck = new Deck();
Thank you
For the deck class, the tutorial show this :
$this->mydeck = self::getNew( "module.common.deck" );
And I'm wondering what getNew() does this does not do :
$this->mydeck = new Deck();
Thank you