Ferreteria/v0.3/class/cFieldRow sourced

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

Template:Page/code/class

abstract class cFieldRow_sourced extends cFieldRow {
    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(); }
    // CEMENT: defer to Source object
    public function GetFieldClassArray() { return $this->GetSourceObject()->GetFieldClassArray(); }
}