From bf79a8fe8a332546f96f00edc424377f6200344e Mon Sep 17 00:00:00 2001 From: misja Date: Tue, 8 Apr 2008 15:14:54 +0000 Subject: Misja Hoebe More docstring fixes git-svn-id: https://code.elgg.org/elgg/trunk@421 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/extender.php | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'engine/lib/extender.php') 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) -- cgit v1.2.3