/**
  * Constructs a new error object.
  *
  * @param smdoc $foowd Reference to the foowd environment object.
  * @param string title The error title
  * @param string errorString The error message.
  */
 function smdoc_error(&$foowd, $title = ERROR_TITLE, $errorString = '')
 {
     $foowd->track('smdoc_error->constructor');
     parent::smdoc_storage($foowd, $title, NULL, FALSE);
     $this->errorString = $errorString;
     $foowd->track();
 }
 /** 
  * Constructor
  * @param smdoc  foowd  Reference to the foowd environment object.
  * @param string group  Name of group - acts as title
  * @param int    userid Objectid of user - acts as objectid
  */
 function smdoc_group_user(&$foowd, $group, $userid)
 {
     global $GROUP_USER_SOURCE;
     $foowd->track('smdoc_group_user', $group, $userid);
     parent::smdoc_storage($foowd, $group, $userid);
     // add to loaded object reference list
     $foowd->database->addToLoadedReference($this, $GROUP_USER_SOURCE);
     $foowd->track();
 }
 /**
  * Retrieve singleton instance of naming lookup object
  *
  * @static
  * @param smdoc $foowd Reference to the foowd environment object.
  * @return Reference to singleton lookup object
  */
 function &getInstance(&$foowd)
 {
     return parent::getInstance($foowd, 'smdoc_name_lookup', META_SMDOC_NAME_LOOKUP_CLASS_ID, SHORTNAMES_ID);
 }
 /**
  * Retrieve singleton instance of application group object
  * @static
  * @param smdoc $foowd Reference to the foowd environment object.
  * @return Reference to singleton application group object
  */
 function &getInstance(&$foowd)
 {
     return parent::getInstance($foowd, 'smdoc_group_appext', META_SMDOC_GROUP_APPEXT_CLASS_ID, APP_GROUPS_ID);
 }