DB::insertUpdate PHP Method

insertUpdate() public static method

public static insertUpdate ( )
    public static function insertUpdate()
    {
        $args = func_get_args();
        return call_user_func_array(array(DB::getMDB(), 'insertUpdate'), $args);
    }

Usage Example

 function save()
 {
     if (isset($this->homeGoals) && isset($this->awayGoals)) {
         DB::insertUpdate("fixture", array("gameweek" => $this->get_round(), "kickoff_time" => $this->get_kickoff(), "home_team" => $this->get_home_team(), "away_team" => $this->get_away_team(), "home_goals" => $this->get_home_goals(), "away_goals" => $this->get_away_goals(), "played" => $this->get_played()));
     } else {
         parent::save();
     }
 }
All Usage Examples Of DB::insertUpdate