public function SetObservation($observation) { $validator = new C3op_Util_ValidLongString(); if ($validator->isValid($observation)) { if ($this->observation != $observation) { $this->observation = $observation; } } else { throw new C3op_Projects_ActionEventException("This ({$observation}) is not a valid observation."); } }
public function SetDescription($description) { $validator = new C3op_Util_ValidLongString(); if ($validator->isValid($description)) { if ($this->description != $description) { $this->description = $description; } } else { throw new C3op_Projects_ActionException("This ({$description}) is not a valid description."); } }