コード例 #1
0
ファイル: ecrflib.php プロジェクト: uhtoff/eCRF
 public function addSignInput($post)
 {
     if (isset($post['comment'])) {
         $this->record->set('comment', $post['comment']);
         $this->record->saveToDB();
     }
     if (isset($post['presignpt'])) {
         if ($post['presignpt'] && $this->user->canPreSign()) {
             $this->record->preSignRecord();
         }
     }
     if (isset($post['unpresignpt'])) {
         if ($post['unpresignpt'] && $this->user->canUnPreSign()) {
             $this->record->unPreSignRecord();
         }
     }
     if (isset($post['signpt'])) {
         if ($post['signpt'] && $this->user->canSign()) {
             $this->record->signRecord();
             $this->record->preSignRecord();
         }
     }
     if (isset($post['unsignpt'])) {
         if ($post['unsignpt'] && $this->user->canUnsign()) {
             $this->record->unsignRecord();
         }
     }
 }