Ferreteria/v0.3/class/cPortalRow

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to: navigation, search
abstract class cPortalRow {

    public function __construct(cFieldRow $rs) { $this->SetRowObject($rs); }
    protected function SetRowObject(cFieldRow $rs) { $this->rs = $rs; }
    /*----
      PUBLIC because some operations return PortalRow objects and we need to get back to the Row object
    */
    public function GetRowObject() : cFieldRow { return $this->rs; }
    abstract protected function GetPortalType();  // child classes return constants from cIOField
    /*----
      ACTION: load the row from portal's external format
        and delete any values not specified in the input
      PUBLIC so flow controllers can use it
    */
    public function LoadRow_fromArray(array $ar) {
}