コード例 #1
0
 protected function _populate($data)
 {
     $obj = new Model_Photo();
     $obj->setId($data['id']);
     $obj->setCatalogsId($data['catalogs_id']);
     $obj->setFilename($data['filename']);
     $obj->setFilesize($data['filesize']);
     $obj->setMimeType($data['mimeType']);
     $obj->setHeight($data['height']);
     $obj->setWidth($data['width']);
     $obj->setDateTimeOriginal($data['dateTimeOriginal']);
     $obj->setMake($data['make']);
     $obj->setModel($data['model']);
     $obj->setOrientation($data['orientation']);
     $obj->setXResolution($data['xResolution']);
     $obj->setYResolution($data['yResolution']);
     $obj->setExposureTime($data['exposureTime']);
     $obj->setExposureProgram($data['exposureProgram']);
     $obj->setExposureMode($data['exposureMode']);
     $obj->setFNumber($data['fNumber']);
     $obj->setFocalLength($data['focalLength']);
     $obj->setIsoSpeedRatings($data['speedRatings']);
     $obj->setLightSource($data['lightSource']);
     $obj->setWhiteBalance($data['whiteBalance']);
     $obj->setFlash($data['flash']);
     $obj->setDigitalZoomRatio($data['digitalZoomRatio']);
     $obj->setGpsLatitudeRef($data['gpsLatitudeRef']);
     $obj->setGpsLatitude($data['gpsLatitude']);
     $obj->setGpsLongitudeRef($data['gpsLongitudeRef']);
     $obj->setGpsLongitude($data['gpsLongitude']);
     $obj->setHeadline($data['headline']);
     $obj->setCaption($data['caption']);
     $obj->setWriter($data['writer']);
     $obj->setCopyrightNotice($data['copyrightNotice']);
     $obj->setContact($data['contact']);
     $obj->setObjectName($data['objectName']);
     $obj->setByLineTitle($data['byLineTitle']);
     $obj->setCity($data['city']);
     $obj->setSubLocation($data['subLocation']);
     $obj->setProvince($data['province']);
     $obj->setCountryCode($data['countryCode']);
     $obj->setCountry($data['country']);
     $obj->setKeywords($data['keywords']);
     return $obj;
 }