From: <var...@us...> - 2021-06-16 18:47:32
|
Revision: 10289 http://sourceforge.net/p/phpwiki/code/10289 Author: vargenau Date: 2021-06-16 18:47:30 +0000 (Wed, 16 Jun 2021) Log Message: ----------- class WikiPluginCached is a "fake" abstract class so that it can be instantiated Modified Paths: -------------- trunk/lib/WikiPluginCached.php Modified: trunk/lib/WikiPluginCached.php =================================================================== --- trunk/lib/WikiPluginCached.php 2021-06-16 17:21:22 UTC (rev 10288) +++ trunk/lib/WikiPluginCached.php 2021-06-16 18:47:30 UTC (rev 10289) @@ -57,7 +57,7 @@ * * @author Johannes Große, Reini Urban */ -abstract class WikiPluginCached extends WikiPlugin +class WikiPluginCached extends WikiPlugin { public $_static; @@ -255,6 +255,11 @@ /* --------------------- abstract functions ----------- */ + protected function getDescription() + { + trigger_error('pure virtual', E_USER_ERROR); + } + /** * Sets the type of the plugin to html, image or map * production @@ -269,8 +274,12 @@ * <li>PLUGIN_CACHED_MAP</li> * </ul> */ - abstract protected function getPluginType(); + protected function getPluginType() + { + trigger_error('pure virtual', E_USER_ERROR); + } + /** * Creates an image handle from the given user arguments. * This method is only called if the return value of @@ -285,7 +294,10 @@ * @return mixed imagehandle image handle if successful * false if an error occured */ - abstract protected function getImage($dbi, $argarray, $request); + protected function getImage($dbi, $argarray, $request) + { + trigger_error('pure virtual', E_USER_ERROR); + } /** * Sets the life time of a cache entry in seconds. @@ -357,7 +369,10 @@ * @return string html to be printed in place of the plugin command * false if an error occured */ - abstract protected function getHtml($dbi, $argarray, $request, $basepage); + protected function getHtml($dbi, $argarray, $request, $basepage) + { + trigger_error('pure virtual', E_USER_ERROR); + } /** * Creates HTML output to be cached. @@ -375,7 +390,10 @@ * image. * array(false,false) if an error occured */ - abstract protected function getMap($dbi, $argarray, $request); + protected function getMap($dbi, $argarray, $request) + { + trigger_error('pure virtual', E_USER_ERROR); + } /* --------------------- produce Html ----------------------------- */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |