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

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
(Created page with "{{page/code/class|ferreteria}} <source lang=php> class cPortalRow_native extends cPortalRow { use tInternalStorage; protected function GetPortalType() { retur...")
 
m (3 revisions imported: moving this project here)
 
(2 intermediate revisions by one other user not shown)
(No difference)

Latest revision as of 16:43, 22 May 2022

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;
        }
    }
}