Ferreteria/v0.3/class/tSourcedFieldRow

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Revision as of 20:10, 4 January 2019 by htyp>Woozle (Created page with "{{page/code/class|ferreteria}} <source lang=php> trait tSourcedFieldRow { public function __construct(cIOSource $oSource) { $this->SetSourceObject($oSource); } prot...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Page/code/class

trait tSourcedFieldRow {
    public function __construct(cIOSource $oSource) {	$this->SetSourceObject($oSource);    }
    protected function SetSourceObject(cIOSource $oSource) { $this->oSource = $oSource; }
    // PUBLIC so PortalRow objects can access
    public function GetSourceObject() : cIOSource { return $this->oSource; }
    // SHORTCUT for convenience
    protected function GetDatabase() { return $this->GetSourceObject()->GetDatabase(); }
}