Skip to content

Instantly share code, notes, and snippets.

@nilsmunch
Created August 27, 2015 14:50
Show Gist options
  • Save nilsmunch/ca77cf0af5d72563906c to your computer and use it in GitHub Desktop.
Save nilsmunch/ca77cf0af5d72563906c to your computer and use it in GitHub Desktop.
switch($this->request->data['read_bydata']['model']){
case 'ambulance':
$this->ambulance_view_file_status($this->request->data['read_bydata']['file_id'],(isset($this->request->data['understand']) ? 2:3));
break;
case 'daily':
$this->daily_view_file_status($this->request->data['read_bydata']['file_id'],(isset($this->request->data['understand']) ? 2:3));
break;
}
if(isset($this->request->data['understand'])){
switch($this->request->data['read_bydata']['model']){
case 'ambulance':
$this->ambulance_view_file_status($this->request->data['read_bydata']['file_id'],2);
break;
case 'daily':
$this->daily_view_file_status($this->request->data['read_bydata']['file_id'],2);
break;
}
}else{
switch($this->request->data['read_bydata']['model']){
case 'ambulance':
$this->ambulance_view_file_status($this->request->data['read_bydata']['file_id'],3);
break;
case 'daily':
$this->daily_view_file_status($this->request->data['read_bydata']['file_id'],3);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment