/** * Returns whether the update module may be accessed. * * @return bool TRUE if the update module may be accessed, FALSE otherwise */ public function access() { if (!t3lib_extMgm::isLoaded('oelib') || !t3lib_extMgm::isLoaded('seminars')) { return FALSE; } if (!tx_oelib_db::existsTable('tx_seminars_seminars') || !tx_oelib_db::existsTable('tx_seminars_attendances')) { return FALSE; } if (!tx_oelib_db::tableHasColumn('tx_seminars_seminars', 'registrations')) { return FALSE; } try { $result = $this->needsToUpdateEventField('registrations'); } catch (tx_oelib_Exception_Database $exception) { $result = FALSE; } return $result; }