/**
  * Constructs a new workspace.
  *
  * @param smdoc $foowd Reference to the foowd environment object.
  * @param string $title The name of the workspace.
  * @param string $description A text description of the workspace.
  * @param string $viewGroup The user group for viewing the workspace.
  * @param string $adminGroup The user group for administrating the workspace.
  * @param string $deleteGroup The user group for deleting the workspace.
  * @param string $enterGroup The user group for entering the workspace.
  * @param string $fillGroup The user group for filling the workspace.
  * @param string $emptyGroup The user group for emptying the workspace.
  * @param string $exportGroup The user group for exporting the workspace.
  * @param string $importGroup The user group for importing the workspace.
  */
 function foowd_workspace(&$foowd, $title = NULL, $description = NULL, $viewGroup = NULL, $adminGroup = NULL, $deleteGroup = NULL, $enterGroup = NULL, $fillGroup = NULL, $emptyGroup = NULL, $exportGroup = NULL, $importGroup = NULL)
 {
     $foowd->track('foowd_workspace->constructor');
     // base object constructor
     parent::foowd_object($foowd, $title, $viewGroup, $adminGroup, $deleteGroup);
     /* set object vars */
     $this->description = $description;
     /* set method permissions */
     if ($enterGroup != NULL) {
         $this->permissions['enter'] = $enterGroup;
     }
     if ($fillGroup != NULL) {
         $this->permissions['fill'] = $fillGroup;
     }
     if ($emptyGroup != NULL) {
         $this->permissions['empty'] = $emptyGroup;
     }
     if ($exportGroup != NULL) {
         $this->permissions['export'] = $exportGroup;
     }
     if ($importGroup != NULL) {
         $this->permissions['import'] = $importGroup;
     }
     $foowd->track();
 }
 /**
  * Constructs a new plain text object.
  *
  * @param smdoc $foowd Reference to the foowd environment object.
  * @param string title The objects title.
  * @param string body The text content body.
  * @param string viewGroup The user group for viewing the object.
  * @param string adminGroup The user group for administrating the object.
  * @param string deleteGroup The user group for deleting the object.
  * @param string editGroup The user group for editing the object.
  */
 function foowd_text_plain(&$foowd, $title = NULL, $body = NULL, $viewGroup = NULL, $adminGroup = NULL, $deleteGroup = NULL, $editGroup = NULL)
 {
     $foowd->track('foowd_text_plain->constructor');
     // base object constructor
     parent::foowd_object($foowd, $title, $viewGroup, $adminGroup, $deleteGroup);
     /* set object vars */
     $this->set('body', $body);
     /* set method permissions */
     if ($editGroup != NULL) {
         $this->permissions['edit'] = $editGroup;
     }
     $foowd->track();
 }