protected function _postSave() { parent::_postSave(); if ($this->isInsert()) { //TODO: process EXIF if ($exif = @unserialize($this->get('photo_exif'))) { if (!empty($exif['Model']) && utf8_strlen($exif['Model'])) { $this->_db->insert('sonnb_xengallery_photo_camera', array('photo_id' => $this->get('content_id'), 'camera_name' => $exif['Model'], 'camera_url' => sonnb_XenGallery_Model_Gallery::getTitleForUrl($exif['Model']))); } } } }