Ferreteria/v0.3/class/tSourcedStorage

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Revision as of 16:44, 22 May 2022 by Woozle (talk | contribs) (5 revisions imported: moving this project here)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.