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...")
 
(correction)
Line 13: Line 13:
This is probably obsolete, since we have moved the Database access methods out of Source.
This is probably obsolete, since we have moved the Database access methods out of Source.
* '''file''': {{l/ferreteria/file|data/portals/rows/storage.php}}
* '''file''': {{l/ferreteria/file|data/portals/rows/storage.php}}
* '''used by''': {{l/ferreteria/class|tDatabaseStorage}}
* '''used by''': {{l/ferreteria/class|cPortalRow_database}}

Revision as of 14:09, 29 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.