public function translateData(iUmiField $v06e3d36fa30cea095545139854ad1fb9) { $v26b75b176d665f24a5fd22a2ad815763 = array('attribute:id' => $v06e3d36fa30cea095545139854ad1fb9->getId(), 'attribute:name' => $v06e3d36fa30cea095545139854ad1fb9->getName(), 'attribute:title' => $v06e3d36fa30cea095545139854ad1fb9->getTitle(), 'attribute:field-type-id' => $v06e3d36fa30cea095545139854ad1fb9->getFieldTypeId()); if ($v06e3d36fa30cea095545139854ad1fb9->getIsVisible()) { $v26b75b176d665f24a5fd22a2ad815763['attribute:visible'] = "visible"; } if ($v06e3d36fa30cea095545139854ad1fb9->getIsInheritable()) { $v26b75b176d665f24a5fd22a2ad815763['attribute:inheritable'] = "inheritable"; } if ($v06e3d36fa30cea095545139854ad1fb9->getIsLocked()) { $v26b75b176d665f24a5fd22a2ad815763['attribute:locked'] = "locked"; } if ($v06e3d36fa30cea095545139854ad1fb9->getIsInFilter()) { $v26b75b176d665f24a5fd22a2ad815763['attribute:filterable'] = "filterable"; } if ($v06e3d36fa30cea095545139854ad1fb9->getIsInSearch()) { $v26b75b176d665f24a5fd22a2ad815763['attribute:indexable'] = "indexable"; } if ($v051369818a8073bba5feeb0e957eb308 = $v06e3d36fa30cea095545139854ad1fb9->getGuideId()) { $v26b75b176d665f24a5fd22a2ad815763['attribute:guide-id'] = $v051369818a8073bba5feeb0e957eb308; } if ($v6a2139364f96787c8ce1bbb0070b898c = $v06e3d36fa30cea095545139854ad1fb9->getTip()) { $v26b75b176d665f24a5fd22a2ad815763['tip'] = $v6a2139364f96787c8ce1bbb0070b898c; } if ($v06e3d36fa30cea095545139854ad1fb9->getIsRequired()) { $v26b75b176d665f24a5fd22a2ad815763['attribute:required'] = "required"; } if ($v6b1a57fa235477758817df3c91158006 = $v06e3d36fa30cea095545139854ad1fb9->getRestrictionId()) { $v26b75b176d665f24a5fd22a2ad815763['restriction'] = baseRestriction::get($v6b1a57fa235477758817df3c91158006); } $v26b75b176d665f24a5fd22a2ad815763['type'] = $v06e3d36fa30cea095545139854ad1fb9->getFieldType(); return $v26b75b176d665f24a5fd22a2ad815763; }
protected function fakeBackupValue(iUmiObject $va8cfde6331bd59eb2ac96f8911c4b666, iUmiField $v06e3d36fa30cea095545139854ad1fb9) { $v2063c1608d6e0baf80249c42e2be5804 = $va8cfde6331bd59eb2ac96f8911c4b666->getValue($v06e3d36fa30cea095545139854ad1fb9->getName()); switch ($v06e3d36fa30cea095545139854ad1fb9->getDataType()) { case 'file': case 'img_file': case 'swf_file': return $v2063c1608d6e0baf80249c42e2be5804 instanceof iUmiFile ? $v2063c1608d6e0baf80249c42e2be5804->getFilePath() : ''; case 'boolean': return $v2063c1608d6e0baf80249c42e2be5804 ? '1' : '0'; case 'date': return $v2063c1608d6e0baf80249c42e2be5804 instanceof umiDate ? $v2063c1608d6e0baf80249c42e2be5804->getFormattedDate('U') : NULL; case 'tags': return is_array($v2063c1608d6e0baf80249c42e2be5804) ? implode(", ", $v2063c1608d6e0baf80249c42e2be5804) : NULL; default: return (string) $v2063c1608d6e0baf80249c42e2be5804; } }