aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-03 03:02:24 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-03 03:02:24 +0000
commit5e038f4f05dc20ab21ebc8fbf3ae5acf062bf637 (patch)
tree51228a6c73d6df61533bd9d1c62c833b510c1fc6 /engine
parentb5bb07dd3716c6e68fcffd36d53e8013cb52793e (diff)
downloadelgg-5e038f4f05dc20ab21ebc8fbf3ae5acf062bf637.tar.gz
elgg-5e038f4f05dc20ab21ebc8fbf3ae5acf062bf637.tar.bz2
Added ElggPlugin::getPath().
git-svn-id: http://code.elgg.org/elgg/trunk@7821 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggPlugin.php11
1 files changed, 10 insertions, 1 deletions
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.