From 5e038f4f05dc20ab21ebc8fbf3ae5acf062bf637 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 3 Jan 2011 03:02:24 +0000 Subject: Added ElggPlugin::getPath(). git-svn-id: http://code.elgg.org/elgg/trunk@7821 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggPlugin.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engine/classes/ElggPlugin.php') diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php index eac98da57..2fe29d175 100644 --- a/engine/classes/ElggPlugin.php +++ b/engine/classes/ElggPlugin.php @@ -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. -- cgit v1.2.3