/** * */ protected function _initAutorun() { $interval = $this->_pm->getConfig()->plugin->selftestInterval; if (!empty($interval)) { require_once $this->_pm->getPathinfo()->getRootLib() . 'IfwPsn/Wp/Date.php'; if ($this->getTimestamp() == null || IfwPsn_Wp_Date::isOlderThanSeconds($this->getTimestamp(), $interval)) { // perform a selftest if no one was run before or the selftest interval is exceeded IfwPsn_Wp_Proxy_Action::addPluginsLoaded(array($this, 'performTests')); } } }