Ferreteria/v0.3/class/tSourcedStorage: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
(Created page with "{{page/code/class|ferreteria}} <source lang=php> // a portal row that has a Source trait tSourcedStorage { protected function GetSourceObject() : cIOSource { retur...")
(No difference)

Revision as of 23:52, 28 December 2018

Template:Page/code/class

// a portal row that has a Source
trait tSourcedStorage {
    protected function GetSourceObject() : cIOSource {
        return $this->GetRowObject()->GetSourceObject();
    }
    protected function GetDatabase() : cDatabaseConnection {
        return $this->GetSourceObject()->GetDatabase();
    }
}

This is probably obsolete, since we have moved the Database access methods out of Source.