示例#1
0
 /**
  * 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;
 }