public function perform() { $task = wpdevart_bc_Library::get_value('task'); $id = wpdevart_bc_Library::get_value('id', 0); if (method_exists($this, $task)) { $this->{$task}($id); } else { $this->display_extras(); } }
public function perform() { $task = wpdevart_bc_Library::get_value('task'); $id = wpdevart_bc_Library::get_value('id', 0); /* $task="edit"; $id=3;*/ if (method_exists($this, $task)) { $this->{$task}($id); } else { $this->display_themes(); } }
public function perform() { $task = wpdevart_bc_Library::get_value('task'); //$task="edit"; $id = wpdevart_bc_Library::get_value('id', 0); //$id=2; $action = wpdevart_bc_Library::get_value('action'); if (method_exists($this, $task)) { $this->{$task}($id); } else { $this->display_calendars(); } }