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

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
m (Woozle moved page Ferreteria/class/tSourcedStorage to Ferreteria/v3/class/tSourcedStorage without leaving a redirect: this is all v3 documentation, and we still need v2)
(No difference)

Revision as of 15:28, 3 February 2020

Template:Page/obsolete

// 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 obsolete, since we have moved the Database access methods out of Source.