示例#1
0
 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.");
     }
 }
示例#2
0
文件: Action.php 项目: racporto/c3op
 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.");
     }
 }