Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook 8 minutes ago
Kajetan Mruk Posted December 22, 2017 Share Posted December 22, 2017 Hey, right now I am using IPS v4.2.6, it would be greate if there is function for \IPS\Helpers\Table\DB like there is in \IPS\Patterns\ActiveRecord called db(). It would so much easier to work on external databases. What I did to make that work: I declared static function called db() like in ActiveRecord and replaced every occurence of \IPS\Db::i() to self::db() in function getRows() in my extended class. It is working fine, but it will be better to overwrite one function of class instead of two of them. Cheers, Kajetan Link to comment Share on other sites More sharing options...
bfarber Posted December 22, 2017 Share Posted December 22, 2017 I've raised your suggestion internally for consideration. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.