From: Jehan-Guillaume (ioguix) de Rorthais Date: Fri, 17 Aug 2012 12:37:59 +0000 (+0200) Subject: Add icon(...) ùethod to the Plugin class X-Git-Tag: REL_5-1-0~54 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b217f8b783c8b7db14f7d6ccbb276ac2179f2dbf;p=phppgadmin.git Add icon(...) ùethod to the Plugin class Helps keeping the code clean and comprehensive to access icon from plugins --- diff --git a/classes/Plugin.php b/classes/Plugin.php index 8072d121..5806d311 100644 --- a/classes/Plugin.php +++ b/classes/Plugin.php @@ -39,5 +39,9 @@ abstract class Plugin { function get_name() { return $this->name; } + + function icon($img) { + return array($this->name, $img); + } } ?>