diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac8f968 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db diff --git a/src/Document.php b/src/Document.php index d1e6d9c..fb528db 100644 --- a/src/Document.php +++ b/src/Document.php @@ -13,7 +13,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Document\StringEnum */ abstract class AbstractDocument diff --git a/src/Document/Annotation.php b/src/Document/Annotation.php index b35a9a4..f4a4183 100644 --- a/src/Document/Annotation.php +++ b/src/Document/Annotation.php @@ -6,7 +6,7 @@ /** * Annotation class * - * Annotations are used to store data representative in a document. They + * Annotations are used to store data representative in a document. They * can also be used when interpreting the data to be displayed to a client/user. * * See the link lower for more reference. @@ -15,37 +15,37 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Document\Range */ -class Annotation +class Annotation { /** * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.Annotation'; - + /** * The name of the annotation * * @var string $name */ protected $name; - + /** * The value of the annotation * * @var mixed $value Any value really. */ protected $value; - + /** * The range object for the annotation's validity. * * @var \echolibre\google_wave\Document\Range $range The range of the annotation */ protected $range; - + /** * Annotation Constructor * diff --git a/src/Document/Element.php b/src/Document/Element.php index 1053b78..f183eb4 100644 --- a/src/Document/Element.php +++ b/src/Document/Element.php @@ -12,29 +12,29 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ -class Element +class Element { /** * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.Element'; - + /** * The type of element we are creating. * * @var string $type The element type */ public $type; - + /** * A private collection of variables used in the magic setters and getters. * * @var array $variables The class properties really. */ private $variables = array(); - + /** * Element Constructor * @@ -51,7 +51,7 @@ public function __construct($elementType, $properties) $this->$key = $value; } } - + /** * Magic setter */ @@ -59,7 +59,7 @@ public function __set($key, $value) { $this->variables[$key] = $value; } - + /** * Magic getter */ @@ -68,7 +68,7 @@ public function __get($key) if (isset($this->variables[$key])) { return $this->variables[$key]; } - + return false; } } diff --git a/src/Document/FormElement.php b/src/Document/FormElement.php index b6932d3..2f55964 100644 --- a/src/Document/FormElement.php +++ b/src/Document/FormElement.php @@ -12,7 +12,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Document\Element */ class FormElement extends \echolibre\google_wave\Document\Element @@ -21,7 +21,7 @@ class FormElement extends \echolibre\google_wave\Document\Element * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.FormElement'; - + /** * FormElement Constructor * @@ -35,7 +35,7 @@ class FormElement extends \echolibre\google_wave\Document\Element * @param string $defaultValue The default value of that new element * @param string $label The label of that new element */ - public function __construct($elementType, $name, + public function __construct($elementType, $name, $value = '', $defaultValue = '', $label = '') { parent::__construct($elementType, array( diff --git a/src/Document/Gadget.php b/src/Document/Gadget.php index 61da950..51ecc5f 100644 --- a/src/Document/Gadget.php +++ b/src/Document/Gadget.php @@ -14,7 +14,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Document\Element * @uses \echolibre\google_wave\Document\AbstractDocument */ @@ -24,7 +24,7 @@ class Gadget extends \echolibre\google_wave\Document\Element * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.Gadget'; - + /** * Gadget Element Constructor * diff --git a/src/Document/Image.php b/src/Document/Image.php index 66497ac..13da8cc 100644 --- a/src/Document/Image.php +++ b/src/Document/Image.php @@ -14,7 +14,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Document\Element * @uses \echolibre\google_wave\Document\AbstractDocument */ @@ -24,21 +24,21 @@ class Image extends \echolibre\google_wave\Document\Element * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.Image'; - + /** * Image Element Constructor - * + * * This is the image element constructor. * * @uses parent::__construct() - * + * * @param string $url The url of the image * @param string $width The width of the image * @param string $height The height of the image * @param string $attachmentid The attachment id of the image * @param string $caption Any caption that could be on the image. */ - public function __construct($url = '', $width = null, $height = null, + public function __construct($url = '', $width = null, $height = null, $attachmentId = null, $caption = null) { parent::__construct(AbstractDocument::$ELEMENTS->IMAGE, array( diff --git a/src/Document/Range.php b/src/Document/Range.php index 3b2a052..f9d8e4d 100644 --- a/src/Document/Range.php +++ b/src/Document/Range.php @@ -12,7 +12,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\RangeException */ class Range @@ -21,21 +21,21 @@ class Range * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.Range'; - + /** * The starting value of the range. * - * @var integer $start + * @var integer $start */ protected $start; - + /** * The ending value of the range. * * @var integer $end */ protected $end; - + /** * Range Constructor * @@ -46,21 +46,21 @@ class Range * @param integer $start The start of the range * @param integer $end The end of the range */ - public function __construct($start = 0, $end = 1) + public function __construct($start = 0, $end = 1) { $this->start = (int)$start; $this->end = (int)$end; - + if ($this->end - $this->start < 0) { throw new \echolibre\google_wave\RangeException('Range cannot be less than 0'); } } - + /** * Is Collapsed * * This method returns whether the end is the same type and - * save value of the start value. + * save value of the start value. * * @return bool Whether $this->end is === to $this->start */ @@ -68,7 +68,7 @@ public function isCollapsed() { return $this->end === $this->start; } - + /** * Magic tostring * diff --git a/src/Document/StringEnum.php b/src/Document/StringEnum.php index e2f695f..0b3667a 100644 --- a/src/Document/StringEnum.php +++ b/src/Document/StringEnum.php @@ -12,7 +12,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ class StringEnum { @@ -22,8 +22,8 @@ class StringEnum * @var array $values */ private $values; - - /** + + /** * StringEnum Constructor * * This method builds a list of enum values @@ -37,8 +37,8 @@ public function __construct(array $values) $this->values[$value] = $value; } } - - /** + + /** * Magic getters. */ public function __get($key) @@ -46,7 +46,7 @@ public function __get($key) if (isset($this->values[$key])) { return $this->values[$key]; } - + return false; } } diff --git a/src/Exception.php b/src/Exception.php index 978d4ca..77b4e02 100644 --- a/src/Exception.php +++ b/src/Exception.php @@ -9,7 +9,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ class Exception extends \Exception {} @@ -21,6 +21,6 @@ class Exception extends \Exception {} * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ class RangeException extends \RangeException {} diff --git a/src/Model.php b/src/Model.php index f76a48c..9223fdb 100644 --- a/src/Model.php +++ b/src/Model.php @@ -2,7 +2,7 @@ namespace echolibre\google_wave\Model; -/** +/** * The root wavelet id suffix. Taken from the python library. */ const ROOT_WAVELET_ID_SUFFIX = '!conv+root'; @@ -18,7 +18,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\Event * @uses \echolibre\google_wave\Model\WaveletData * @uses \echolibre\google_wave\Model\BlipData @@ -39,19 +39,19 @@ abstract class AbstractModel public static function createEvent(array $data) { $event = new \echolibre\google_wave\Model\Event; - + $event->type = $data['type']; $event->timestamp = $data['timestamp']; $event->modifiedBy = $data['modifiedBy']; $event->properties = new \stdClass(); - + if (isset($data['properties'])) { $event->properties = $data['properties']; } - + return $event; } - + /** * Create a wavelet data * @@ -61,13 +61,13 @@ public static function createEvent(array $data) * * @param array $data The data to set the new object with. * - * @return \echolibre\google_wave\model\WaveletData $waveletData + * @return \echolibre\google_wave\model\WaveletData $waveletData * The Model\WaveletData object. */ public static function createWaveletData(array $data) { $waveletData = new \echolibre\google_wave\Model\WaveletData; - + $waveletData->creator = $data['creator']; $waveletData->creationTime = $data['creationTime']; $waveletData->dataDocuments = $data['dataDocuments']; @@ -81,9 +81,9 @@ public static function createWaveletData(array $data) return $waveletData; } - + /** - * Create a blip data + * Create a blip data * * This method will create a blip data and return it's * object with the range, annotations, contributors, etc @@ -91,25 +91,25 @@ public static function createWaveletData(array $data) * * @param array $data The array of data associated to a blipData object. * - * @return \echolibre\google_wave\model\BlipData $blipDate + * @return \echolibre\google_wave\model\BlipData $blipDate * The Model\BlipData object. */ public static function createBlipData(array $data) { $blipData = new \echolibre\google_wave\Model\BlipData; $blipData->annotations = new \ArrayObject(); - + foreach ($data['annotations'] as $annotation) { - $tmpRange = \echolibre\google_wave\Document\Range($annotation['range']['start'], + $tmpRange = \echolibre\google_wave\Document\Range($annotation['range']['start'], $annotation['range']['end']); - + $blipData->annotations->append( new \echolibre\google_wave\Document\Annotation( $annotation['name'], $annotation['value'], $tmpRange ) ); } - + $blipData->childBlipIds = new \ArrayObject($data['childBlipIds']); $blipData->content = $data['content']; $blipData->contributors = new \ArrayObject($data['contributors']); diff --git a/src/Model/Blip.php b/src/Model/Blip.php index 80d0ea7..6ba2988 100644 --- a/src/Model/Blip.php +++ b/src/Model/Blip.php @@ -14,7 +14,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\BlipData * @uses \echolibre\google_wave\Model\Document */ @@ -26,14 +26,14 @@ class Blip * @var \echolibre\google_wave\Model\BlipData $data */ protected $data; - + /** * The Document object * * @var \echolibre\google_wave\Model\Document $document */ protected $document; - + /** * Blip Constructor * @@ -47,8 +47,8 @@ public function __construct(BlipData $data, Document $document) $this->data = $data; $this->document = $document; } - - /** + + /** * Magic Getter */ public function __get($key) @@ -59,20 +59,20 @@ public function __get($key) return $this->document->{$key}; } } - + if ($this->data->{$key} !== false) { return $this->data->{$key}; } - + return false; } - + /** * Is root? * * Is this the same as it's parent thus the root? * - * @return bool if parentBlipId is null. + * @return bool if parentBlipId is null. */ public function isRoot() { diff --git a/src/Model/BlipData.php b/src/Model/BlipData.php index 510117e..452c199 100644 --- a/src/Model/BlipData.php +++ b/src/Model/BlipData.php @@ -11,7 +11,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ class BlipData { @@ -19,15 +19,15 @@ class BlipData * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.impl.BlipData'; - + /** * A private collection of variables used in the magic setters and getters. * * @var array $variables The class properties really. */ private $variables = array(); - - /** + + /** * BlipData Constructor * * This constructor initializes the variables needed by the object. @@ -47,7 +47,7 @@ public function __construct() $this->waveId = null; $this->waveletId = null; } - + /** * Magic Setter */ @@ -55,7 +55,7 @@ public function __set($key, $value) { $this->variables[$key] = $value; } - + /** * Magic Getter */ @@ -64,7 +64,7 @@ public function __get($key) if (isset($this->variables[$key])) { return $this->variables[$key]; } - + return false; } } \ No newline at end of file diff --git a/src/Model/Document.php b/src/Model/Document.php index 2036260..53eb94d 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -12,7 +12,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\BlipData */ class Document @@ -23,7 +23,7 @@ class Document * @var \echolibre\google_wave\Model\BlipData $data */ private $data; - + /** * Document Constructor * @@ -35,7 +35,7 @@ public function __construct(BlipData $data) { $this->data = $data; } - + /** * Get the text content * diff --git a/src/Model/Event.php b/src/Model/Event.php index eb7f316..69577ff 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -10,7 +10,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ class Event { @@ -20,21 +20,21 @@ class Event * @var string $type */ public $type = ''; - + /** * The timestamp of that event * * @var integer $timestamp */ public $timestamp = 0; - + /** * This event was modified by... * * @var string $modifiedBy */ public $modifiedBy = ''; - + /** * Properties of that event. * diff --git a/src/Model/Wave.php b/src/Model/Wave.php index a4a1cc6..dd6cb80 100644 --- a/src/Model/Wave.php +++ b/src/Model/Wave.php @@ -13,7 +13,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\WaveData */ class Wave @@ -24,7 +24,7 @@ class Wave * @var \echolibre\google_wave\Model\WaveData $data */ protected $data; - + /** * Wave Constructor * @@ -36,7 +36,7 @@ public function __construct(WaveData $data) { $this->data = $data; } - + /** * Get the id of the Wave * @@ -46,7 +46,7 @@ public function getId() { return $this->data->id; } - + /** * Get the ids of the wavelets * diff --git a/src/Model/WaveData.php b/src/Model/WaveData.php index b100333..4f20707 100644 --- a/src/Model/WaveData.php +++ b/src/Model/WaveData.php @@ -11,7 +11,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ class WaveData { @@ -21,9 +21,9 @@ class WaveData * @var integer $id Default null */ public $id = null; - + /** - * Wavelets ids + * Wavelets ids * * @var array $waveletIds A list of wavelet ids */ diff --git a/src/Model/Wavelet.php b/src/Model/Wavelet.php index 2a5ff26..d58bc2e 100644 --- a/src/Model/Wavelet.php +++ b/src/Model/Wavelet.php @@ -13,7 +13,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\WaveletData */ class Wavelet @@ -24,7 +24,7 @@ class Wavelet * @var \echolibre\google_wave\Model\WaveletData $data */ protected $data; - + /** * Wavelet constructor * @@ -36,7 +36,7 @@ public function __construct(WaveletData $data) { $this->data = $data; } - + /** * Magic Getter */ @@ -45,7 +45,7 @@ public function __get($key) if ($this->data->{$key} !== false) { return $this->data->{$key}; } - + return false; } } \ No newline at end of file diff --git a/src/Model/WaveletData.php b/src/Model/WaveletData.php index efdb03f..4cc492d 100644 --- a/src/Model/WaveletData.php +++ b/src/Model/WaveletData.php @@ -11,7 +11,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL */ class WaveletData { @@ -19,15 +19,15 @@ class WaveletData * The google wave api class */ const JAVA_CLASS = 'com.google.wave.api.impl.WaveletData'; - + /** * A private collection of variables used in the magic setters and getters. * * @var array $variables The class properties really. */ private $variables = array(); - - /** + + /** * WaveletData Constructor * * This constructor initializes the variables needed by the object. @@ -45,7 +45,7 @@ public function __construct() $this->waveId = null; $this->waveletId = null; } - + /** * Magic Setter */ @@ -53,16 +53,16 @@ public function __set($key, $value) { $this->variables[$key] = $value; } - + /** * Magic Getter */ - public function __get($key) + public function __get($key) { if (isset($this->variables[$key])) { return $this->variables[$key]; } - + return false; } } \ No newline at end of file diff --git a/src/Operations/BasedBlip.php b/src/Operations/BasedBlip.php index df21b15..bf1892a 100644 --- a/src/Operations/BasedBlip.php +++ b/src/Operations/BasedBlip.php @@ -17,7 +17,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\Blip * @uses \echolibre\google_wave\Model\BlipData * @uses \echolibre\google_wave\Operations\Context @@ -26,7 +26,7 @@ class BasedBlip extends Blip { private $_context; - + /** * Constructor * @@ -40,7 +40,7 @@ public function __construct(Blip $data, Context $context) parent::__construct($data, new BasedDocument($data, $context)); $this->_context = $context; } - + /** * Create a child blip * @@ -53,10 +53,10 @@ public function createChild() $blipData = $this->_context->builder->createBlipChild( $this->waveId, $this->waveletId, $this->blipId ); - + return $this->_context->addBlip($blipData); } - + /** * Delete a blip * @@ -69,7 +69,7 @@ public function delete() $this->_context->builder->deleteBlip( $this->waveId, $this->waveletId, $this->blipId ); - + return $this->_context->deleteBlip($this->blipId); } } \ No newline at end of file diff --git a/src/Operations/BasedDocument.php b/src/Operations/BasedDocument.php index 377aced..d8798ba 100644 --- a/src/Operations/BasedDocument.php +++ b/src/Operations/BasedDocument.php @@ -17,7 +17,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\WaveData * @uses \echolibre\google_wave\Model\Wave * @uses \echolibre\google_wave\Operations\Context @@ -25,7 +25,7 @@ class BasedDocument extends Document { private $_context; - + /** * Constructor * @@ -39,7 +39,7 @@ public function __construct(Blip $data, Context $context) parent::__construct($data); $this->_context = $context; } - + /** * Has Annotation * @@ -51,7 +51,7 @@ public function __construct(Blip $data, Context $context) public function hasAnnotation($name) { $annotationIterator = $this->annotations->getIterator(); - + foreach ($annotationIterator->rewind(); $annotationIterator->valid(); $annotationIterator->next()) { // I want $it->current()['name']; .. patch accepted? yeah yeah... $current = $it->current(); @@ -59,33 +59,33 @@ public function hasAnnotation($name) return true; } } - + return false; } - + /** * Ranges for Annotation * * This does like "hasAnnotation" but returns the range of the found * annotation. - * + * * @param string $name The name of the annotation to find. * @return mixed Either a Range ArrayObject or false if nothing is found. */ public function rangesForAnnotation($name) { $annotationIterator = $this->annotations->getIterator(); - + foreach ($annotationIterator->rewind(); $annotationIterator->valid(); $annotationIterator->next()) { $current = $it->current(); if ($current['name'] == $name) { return $current['range']; } } - + return false; } - + /** * Set the text in document * @@ -97,14 +97,14 @@ public function rangesForAnnotation($name) public function setText($text) { $this->clear(); - + $this->_context->builder->insertDocument( $this->waveId, $this->waveletId, $this->blipId, $text ); - + $this->blip->content = $text; } - + /** * Set the text in range * @@ -119,7 +119,7 @@ public function setTextInRange(Range $range, $text) $this->deleteRange($range); $this->insertText($range->start, $text); } - + /** * Insert text * @@ -137,12 +137,12 @@ public function insertText($start, $text) $left = substr($this->blip->content, 0, $start); $right = substr($this->blip->content, $start, sizeof($this->blip->content) - 1); - + $this->blip->content = $left . $text . $right; } - + /** - * Append text + * Append text * * Append some text to the content of a blip. * @@ -154,10 +154,10 @@ public function appendText($text) $this->_content->builder->appendDocument( $this->waveId, $this->waveletId, $this->blipId, $text ); - + $this->blip->content += $text; } - + /** * Clear a document * @@ -168,31 +168,31 @@ public function appendText($text) public function clear() { $this->_context->builder->documentDelete( - $this->waveId, $this->waveletId, + $this->waveId, $this->waveletId, $this->blipId, 0, count($this->blip->content) ); - + $this->blip->content = ''; } - + /** * Delete Range * * This method is used to delete a range of values * - * @param Range $range The range + * @param Range $range The range * @return void */ public function deleteRange(Range $range) { $this->_context->builder->deleteDocument( - $this->waveId, $this->waveletId, - $this->blipId, $range->start, $range->end + $this->waveId, $this->waveletId, + $this->blipId, $range->start, $range->end ); - + $left = substr($this->blip->content, 0, $range->start); $right = substr($this->blip->content, $range->start, $range->end); - + $this->blip->content = $left . $right; } } \ No newline at end of file diff --git a/src/Operations/BasedWave.php b/src/Operations/BasedWave.php index 1e56c40..745f0c1 100644 --- a/src/Operations/BasedWave.php +++ b/src/Operations/BasedWave.php @@ -16,7 +16,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\WaveData * @uses \echolibre\google_wave\Model\Wave * @uses \echolibre\google_wave\Operations\Context @@ -24,7 +24,7 @@ class BasedWave extends Wave { private $_context; - + /** * Constructor * @@ -38,7 +38,7 @@ public function __construct(WaveData $data, Context $context) parent::__construct($data); $this->_context = $context; } - + /** * Create a wavelet * diff --git a/src/Operations/BasedWavelet.php b/src/Operations/BasedWavelet.php index a1bae83..81b1675 100644 --- a/src/Operations/BasedWavelet.php +++ b/src/Operations/BasedWavelet.php @@ -16,7 +16,7 @@ * @author David Coallier * @package echolibre\google_wave * @version 0.1.0 - * @license LGPL + * @license LGPL * @uses \echolibre\google_wave\Model\WaveletData * @uses \echolibre\google_wave\Model\Wavelet * @uses \echolibre\google_wave\Operations\Context @@ -24,7 +24,7 @@ class BasedWavelet extends Wavelet { private $_context; - + /** * Constructor * @@ -51,11 +51,11 @@ public function createBlip() $blipData = $this->_context->builder->appendWaveletBlip( $this->waveId, $this->waveletId ); - + return $this->_context->addBlip($blipData); } - - /** + + /** * Add a participant * * Add a participant to a wavelet @@ -68,10 +68,10 @@ public function addParticipant($participantId) $this->_context->builder->addWaveletParticipant( $this->waveId, $this->waveletId, $participantId ); - + $this->participants->append($participantId); } - + /** * Remove a wavelet * @@ -83,8 +83,8 @@ public function remove() { $this->_context->builder->waveletRemove($this->waveId, $this->waveletId); } - - /** + + /** * Set the data document * * This method is used to set the wavelet data document @@ -98,10 +98,10 @@ public function setDataDocument($name, $data) $this->_context->builder->setWaveletDataDoc( $this->waveId, $this->waveletId, $name, $data ); - + $this->_data->dataDocuments[$name] = $data; } - + /** * Set the title * @@ -115,7 +115,7 @@ public function setTitle($title) $this->_context->builder->setWaveletTitle( $this->waveId, $this->waveletId, $title ); - + $this->_data->title = $title; } } \ No newline at end of file