aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/extender.php
diff options
context:
space:
mode:
authormisja <misja@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-08 15:14:54 +0000
committermisja <misja@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-08 15:14:54 +0000
commitbf79a8fe8a332546f96f00edc424377f6200344e (patch)
tree276fc4403e69b6842cb7706600067161c7d117ec /engine/lib/extender.php
parent7a2ae99931f3ecbcfbdb740c96149e41212a2a31 (diff)
downloadelgg-bf79a8fe8a332546f96f00edc424377f6200344e.tar.gz
elgg-bf79a8fe8a332546f96f00edc424377f6200344e.tar.bz2
Misja Hoebe <misja@curverider.co.uk> More docstring fixes
git-svn-id: https://code.elgg.org/elgg/trunk@421 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/extender.php')
-rw-r--r--engine/lib/extender.php31
1 files changed, 30 insertions, 1 deletions
diff --git a/engine/lib/extender.php b/engine/lib/extender.php
index aca8a0fca..26166a225 100644
--- a/engine/lib/extender.php
+++ b/engine/lib/extender.php
@@ -12,8 +12,11 @@
*/
/**
- * @class ElggExtender
+ * ElggExtender
+ *
* @author Marcus Povey
+ * @package Elgg
+ * @subpackage Core
*/
abstract class ElggExtender implements Exportable, Importable
{
@@ -23,6 +26,12 @@
*/
protected $attributes;
+ /**
+ * Get an attribute
+ *
+ * @param string $name
+ * @return mixed
+ */
protected function get($name) {
if (isset($this->attributes[$name])) {
@@ -45,6 +54,13 @@
return null;
}
+ /**
+ * Set an attribute
+ *
+ * @param string $name
+ * @param mixed $value
+ * @return boolean
+ */
protected function set($name, $value) {
$this->attributes[$name] = $value;
return true;
@@ -80,6 +96,11 @@
return can_edit_extender($this->id,$this->type,$user_guid);
}
+ /**
+ * Export this object
+ *
+ * @return array
+ */
public function export()
{
$tmp = new stdClass;
@@ -89,6 +110,14 @@
return $tmp;
}
+ /**
+ * Import an object
+ *
+ * @param array $data
+ * @param int $version
+ * @return ElggExtender
+ * @throws ImportException
+ */
public function import(array $data, $version = 1)
{
if ($version == 1)