nUid = null; $this->tsDate = intval($tsDate); $this->strOwner = $strOwner; $this->strMachine = $strMachine; $this->strText = $strText; $this->strComment = null; $this->strCommentOwner = null; $this->bHidden = ($bHidden == true); } /////////////////////////////////////////// SETTER FUNCTIONS /////////////////////////////////////////// /** * @} * @name Setter functions * @{ */ /** * Set the unique ID * @param $value (int) */ function setUid($value) { $this->nUid = $value; } /** * Set the date * @param $value (timestamp) */ function setDate($value) { $this->tsDate = intval($value); } /** * Set the account name of the owner * @param $value (string) */ function setOwner($value) { $this->strOwner = $value; } /** * Set the label of the machine to which the report refers * @param $value (string) */ function setMachine($value) { $this->strMachine = $value; } /** * Set the text of the report * @param $value (string) */ function setText($value) { $this->strText = $value; } /** * Set the comment of an adminstrator * @param $strComment (string) Comment * @param $strAct (string) Account name of the person who sets the comment */ function setComment($strComment, $strAct) { $this->strComment = $strComment; $this->strCommentOwner = $strAct; } /** * Set the visibility of the report * @param $value (bool) true: the report is only visible for administrators */ function setVisibility($value) { $this->bHidden = $value; } /////////////////////////////////////////// GETTER FUNCTIONS /////////////////////////////////////////// /** * @} * @name Getter functions * @{ */ /** * Get the unique ID in the database * @return (int) */ function getUid() { return intval($this->nUid); } /** * Get the date when the report was created * @return (timestamp) */ function getDate() { return intval($this->tsDate); } /** * Get the account name of the creator * @return (string) */ function getOwner() { return $this->strOwner; } /** * Get the label of the machine to which the report refers * @return (string) */ function getMachine() { return $this->strMachine; } /** * Get the tet of the report * @return (string) */ function getText() { return $this->strText; } /** * Get the comment from an administrator * @return (string) */ function getComment() { return $this->strComment; } /** * Get the account name of the one who wrote the comment * @return (string) */ function getCommentOwner() { return $this->strCommentOwner; } /** * Determine if the report can be seen by non-administrators * @return (bool) */ function isHidden() { return ($this->bHidden == true); } /**@}*/ } ?>