Ferreteria/v0.3/class/tSourcedStorage: Difference between revisions
< Ferreteria | v0.3 | class
Jump to navigation
Jump to search
(correction) |
(obsolete several days ago) |
||
Line 1: | Line 1: | ||
{{page/ | {{page/obsolete|ferreteria}} | ||
<source lang=php> | <source lang=php> | ||
// a portal row that has a Source | // a portal row that has a Source | ||
Line 11: | Line 11: | ||
} | } | ||
</source> | </source> | ||
This is | This is obsolete, since we have moved the Database access methods out of Source. | ||
* '''file''': {{l/ferreteria/file|data/portals/ | * '''file''': {{l/ferreteria/file|data/portals/array/storage.php}} | ||
Revision as of 15:19, 15 January 2019
// 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.