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

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
(correction)
(obsolete several days ago)
Line 1: Line 1:
{{page/code/class|ferreteria}}
{{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 probably obsolete, since we have moved the Database access methods out of Source.
This is 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/array/storage.php}}
* '''used by''': {{l/ferreteria/class|cPortalRow_database}}

Revision as of 15:19, 15 January 2019

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.