Пример #1
0
 public function get_loggin_user_info()
 {
     $ObjContactsTemp = new contactsTempModel();
     $contact_id = Session::get('contact_id');
     /*$contact_status = Session::get('contact_status');
     		
     		if( $contact_status == 'Contact Temp' ){
     			$col = $ObjContactsTemp->get_record_join_by_id( $contact_id );
     		} else {
     			$col = $this->get_record_join_by_id( $contact_id );
     		}*/
     /*$check_contact_temp = $ObjContactsTemp->get_record_by_id( $contact_id );
     			
     		if( $check_contact_temp ){
     			$col = $ObjContactsTemp->get_record_join_by_id( $contact_id );
     		} else {
     			$col = $this->get_record_join_by_id( $contact_id );
     		}
     		
     		return $col;
     		*/
     $contcol = $ObjContactsTemp->get_record_join_by_id($contact_id);
     if ($contcol == FALSE) {
         $contcol = $this->get_record_join_by_id($contact_id);
     }
     return $contcol;
 }