aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggPlugin.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-22 16:56:55 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-22 16:56:55 +0000
commit56b3e3dcd833a8a9124581b536c69806962b9640 (patch)
treedd3f2219b07f53d64836f72d74ca83dfd2e00691 /engine/classes/ElggPlugin.php
parent6a49dcf1082e3047d3c92a3b3b3bb43efa2b2c74 (diff)
downloadelgg-56b3e3dcd833a8a9124581b536c69806962b9640.tar.gz
elgg-56b3e3dcd833a8a9124581b536c69806962b9640.tar.bz2
Refs #2450: Documented a few more classes.
git-svn-id: http://code.elgg.org/elgg/trunk@6956 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggPlugin.php')
-rw-r--r--engine/classes/ElggPlugin.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index 921665f4d..c666b8438 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -1,8 +1,12 @@
<?php
/**
- * @class ElggPlugin Object representing a plugin's settings for a given site.
- * This class is currently a stub, allowing a plugin to saving settings in an object's metadata for each site.
- * @author Curverider Ltd
+ * Stores site-side plugin settings as private data.
+ *
+ * This class is currently a stub, allowing a plugin to
+ * save settings in an object's private settings for each site.
+ *
+ * @package Elgg.Core
+ * @subpackage Plugins.Settings
*/
class ElggPlugin extends ElggObject {
protected function initialise_attributes() {
@@ -16,7 +20,10 @@ class ElggPlugin extends ElggObject {
}
/**
- * Override entity get and sets in order to save data to private data store.
+ * Get a value from private settings.
+ *
+ * @param string $name
+ * @return mixed
*/
public function get($name) {
// See if its in our base attribute
@@ -37,7 +44,10 @@ class ElggPlugin extends ElggObject {
}
/**
- * Override entity get and sets in order to save data to private data store.
+ * Save a value to private settings.
+ *
+ * @param string $name
+ * @param mixed $value
*/
public function set($name, $value) {
if (array_key_exists($name, $this->attributes)) {