Ejemplo n.º 1
0
Archivo: page.php Proyecto: trk/ionize
 /**
  * Set an item online / offline depending on its current status
  *
  * @param	int		$id_page
  */
 public function switch_online($id_page)
 {
     // Clear the cache
     Cache()->clear_cache();
     $status = $this->page_model->switch_online($id_page);
     $this->callback = array(array('fn' => 'ION.switchOnlineStatus', 'args' => array('status' => $status, 'selector' => '.page' . $id_page)));
     // Answer sent
     $this->success(lang('ionize_message_operation_ok'));
 }