/**
  * Constructor
  * @param smdoc $foowd Reference to the foowd environment object.
  */
 function smdoc_translation(&$foowd, $title = NULL, $description = NULL, $icon = NULL)
 {
     $foowd->track('smdoc_translation->constructor');
     parent::foowd_workspace($foowd, $title, $description);
     /* set object vars */
     $this->language_icon = $icon;
     smdoc_translation::initialize($foowd);
     $foowd->track();
 }
 /**
  * Place the user in or take the user out of the workspace and redirect to
  * the view method.
  */
 function method_enter()
 {
     $this->foowd->track('foowd_workspace->method_enter');
     if (foowd_workspace::enterWorkspace($this->foowd, $this->objectid)) {
         $_SESSION['ok'] = WORKSPACE_CHANGE_SUCCEEDED;
     } else {
         $_SESSION['error'] = WORKSPACE_CHANGE_FAILED;
     }
     $uri_arr['objectid'] = $this->objectid;
     $uri_arr['classid'] = $this->classid;
     $this->foowd->track();
     $this->foowd->loc_forward(getURI($uri_arr, FALSE));
     exit;
 }