Example #1
0
 /**
  * مشخص کردن امضا کننده حکم
  *
  */
 private function set_writ_sign_info()
 {
     $post = manage_variables::get_variable_info("post_id1", $this->person_type);
     $owner_record = manage_posts::get_post_owner2($post, date('Y-m-d'), true);
     //print_r(ExceptionHandler::PopAllExceptions());
     //echo $post ."----post"; die();
     //در صورتي که پست در اختيار خود فرد است
     if ($owner_record["staff_id"] == $this->staff_id) {
         // پست دوم را بخوان
         $post_record = manage_variables::get_variable_info("post_id2", $this->person_type);
         $owner_record = manage_posts::get_post_owner2($post, date('Y-m-d'), true);
     }
     $this->writ_signature_post_owner = $owner_record["name"];
     $this->writ_signature_post_title = manage_posts::get_post_title($post);
 }