/** * 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(); }
/** * Constructor * Initialize new instance of smdoc_internal_mapping. * @param smdoc $foowd Reference to Foowd environment */ function smdoc_name_lookup(&$foowd) { parent::smdoc_storage($foowd, '__SHORTNAMES__', SHORTNAMES_ID); $this->shortNames = array(); }
/** * Constructor * @param smdoc $foowd Reference to the foowd environment object. */ function smdoc_group_appext(&$foowd) { parent::smdoc_storage($foowd, '__GROUPS__', APP_GROUPS_ID); $this->groups = array(); }