Ferreteria/v0.3/class/cPortalRow native: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
m (Woozle moved page Ferreteria/class/cPortalRow native to Ferreteria/v3/class/cPortalRow native without leaving a redirect: this is all v3 documentation, and we still need v2)
(No difference)

Revision as of 15:28, 3 February 2020

Template:Page/code/class

class cPortalRow_native extends cPortalRow {
    use tInternalStorage;

    protected function GetPortalType() {
        return cIOField::ksPortalNative;
    }
    
    protected function SetPortals_fromFields(array $arFields) {
        foreach ($arFields as $sKey => $oField) {
            $oPortal = $oField->MakeCalculator();
            $this->arPortals[$sKey] = $oPortal;
        }
    }
}