Ferreteria/v0.3/class/cPortalRow storage
< Ferreteria | v0.3 | class
Jump to navigation
Jump to search
class cPortalRow_storage extends cPortalRow implements ifLoadableRows {
use tLoadableRow; // lets DB store its resource-blob
protected function GetPortalType() {
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;
}
}
}
}
- file: Template:L/ferreteria/file
- extends: Template:L/ferreteria/class
- implements: Template:L/ferreteria/class
- uses: Template:L/ferreteria/class