From: <var...@us...> - 2014-10-06 14:39:49
|
Revision: 9199 http://sourceforge.net/p/phpwiki/code/9199 Author: vargenau Date: 2014-10-06 14:39:41 +0000 (Mon, 06 Oct 2014) Log Message: ----------- protected function pngArg Modified Paths: -------------- trunk/lib/WikiPluginCached.php trunk/lib/plugin/GraphViz.php trunk/lib/plugin/Ploticus.php Modified: trunk/lib/WikiPluginCached.php =================================================================== --- trunk/lib/WikiPluginCached.php 2014-10-06 12:49:21 UTC (rev 9198) +++ trunk/lib/WikiPluginCached.php 2014-10-06 14:39:41 UTC (rev 9199) @@ -421,6 +421,19 @@ } /** + * Which argument must be set to 'png', for the fallback image when svg + * will fail on the client. + * type: SVG_PNG + * + * @return string + */ + protected function pngArg() + { + trigger_error('WikiPluginCached::pngArg: pure virtual function in file ' + . __FILE__ . ' line ' . __LINE__, E_USER_ERROR); + } + + /** * Creates an HTML <img> tag hyperlinking to the specified * url and produces an alternative text for non-graphical * browsers. Modified: trunk/lib/plugin/GraphViz.php =================================================================== --- trunk/lib/plugin/GraphViz.php 2014-10-06 12:49:21 UTC (rev 9198) +++ trunk/lib/plugin/GraphViz.php 2014-10-06 14:39:41 UTC (rev 9199) @@ -319,9 +319,14 @@ return $outfile; } - // which argument must be set to 'png', for the fallback image when svg will fail on the client. - // type: SVG_PNG - function pngArg() + /** + * Which argument must be set to 'png', for the fallback image when svg + * will fail on the client. + * type: SVG_PNG + * + * @return string + */ + protected function pngArg() { return 'imgtype'; } Modified: trunk/lib/plugin/Ploticus.php =================================================================== --- trunk/lib/plugin/Ploticus.php 2014-10-06 12:49:21 UTC (rev 9198) +++ trunk/lib/plugin/Ploticus.php 2014-10-06 14:39:41 UTC (rev 9199) @@ -277,9 +277,14 @@ return "$tempfile.$gif"; } - // which argument must be set to 'png', for the fallback image when svg will fail on the client. - // type: SVG_PNG - function pngArg() + /** + * Which argument must be set to 'png', for the fallback image when svg + * will fail on the client. + * type: SVG_PNG + * + * @return string + */ + protected function pngArg() { return 'device'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |