]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added ElggPlugin::getPath().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 3 Jan 2011 03:02:24 +0000 (03:02 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 3 Jan 2011 03:02:24 +0000 (03:02 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7821 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggPlugin.php

index eac98da57a6be2eb5dc51ba74afbd4a692db6b88..2fe29d175bcac50785eefd4252ddc276bc17d5a2 100644 (file)
@@ -114,7 +114,7 @@ class ElggPlugin extends ElggObject {
        }
 
 
-       // Plugin ID
+       // Plugin ID and path
 
        /**
         * Returns the ID (dir name) of this plugin
@@ -125,6 +125,15 @@ class ElggPlugin extends ElggObject {
                return $this->title;
        }
 
+       /**
+        * Returns the plugin's full path with trailing slash.
+        *
+        * @return string
+        */
+       public function getPath() {
+               return $this->path;
+       }
+
 
        /**
         * Sets the location of this plugin.