*/ class Ebizmarts_MageMonkey_Model_Mysql4_Bulksync_Export extends Mage_Core_Model_Mysql4_Abstract { /** * Initialize model * * @return void */ public function _construct() { $this->_init('monkey/bulksync_export', 'id'); } /** * Before save callback, set and values * * @param Mage_Core_Model_Abstract $object * @return void */ protected function _beforeSave(Mage_Core_Model_Abstract $object) { if (!$object->getCreatedAt()) { $object->setCreatedAt($this->formatDate(time())); } $object->setUpdatedAt($this->formatDate(time())); parent::_beforeSave($object); } }