Difference between revisions of "Ferreteria/v0.3/class/cPortalRow storage"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
(extenders)
Line 7: Line 7:
 
         return cIOField::ksPortalStorage;
 
         return cIOField::ksPortalStorage;
 
     }
 
     }
    protected function SetPortals_fromFields(array $arFields) {
+
}}
        if (count($arFields) == 0) {
 
            throw new \exception('Attempting to set Portals with an empty field-list.');
 
        } else {
 
            foreach ($arFields as $sKey => $oField) {
 
                $oPortal = $oField->MakePortal($this->GetPortalType());
 
                $this->arPortals[$sKey] = $oPortal;
 
            }
 
        }
 
    }
 
}
 
 
</source>
 
</source>
 
* '''file''': {{l/ferreteria/file|data/portals/rows/storage.php}}
 
* '''file''': {{l/ferreteria/file|data/portals/rows/storage.php}}

Revision as of 12:57, 1 January 2019

class cPortalRow_storage extends cPortalRow implements ifLoadableRows {
    use tLoadableRow;   // lets DB store its resource-blob

    protected function GetPortalType() {
        return cIOField::ksPortalStorage;
    }
}}