Пример #1
0
 private function deletetraining($member_id, $training_id)
 {
     $training = new Tnp_Model_MemberInfo_Training();
     $training->setMember_id($member_id);
     $training->setTraining_id($training_id);
     return $training->deleteTrainingRecord();
 }
Пример #2
0
 /**
  * Operating Condition : Member Id is set
  * @param int $training_id
  * @return object|false  Object of Tnp_Model_MemberInfo_Training
  */
 public function fetchTrainingInfo($training_id)
 {
     $member_id = $this->getMember_id(true);
     $member_training = new Tnp_Model_MemberInfo_Training();
     $member_training->setMember_id($member_id);
     $member_training->setTraining_id($training_id);
     return $member_training->fetchInfo();
 }