applications/dashboard/models/class.banmodel.php
public function Save($FormPostValues, $Settings = FALSE) {
      $CurrentBanID = GetValue('BanID', $FormPostValues);

      // Get the current ban before saving.
      if ($CurrentBanID)
         $CurrentBan = $this->GetID($CurrentBanID, DATASET_TYPE_ARRAY);
      else
         $CurrentBan = NULL;
    
      $this->SetCounts($FormPostValues);
      $BanID = parent::Save($FormPostValues, $Settings);
      $FormPostValues['BanID'] = $BanID;

      $this->ApplyBan($FormPostValues, $CurrentBan);
   }
public function Save($FormPostValues, $Settings = FALSE) {
      $CurrentBanID = GetValue('BanID', $FormPostValues);

      // Get the current ban before saving.
      if ($CurrentBanID)
         $CurrentBan = $this->GetID($CurrentBanID, DATASET_TYPE_ARRAY);
      else
         $CurrentBan = NULL;
    
      $this->SetCounts($FormPostValues);
      $BanID = parent::Save($FormPostValues, $Settings);
      $FormPostValues['BanID'] = $BanID;

      $this->ApplyBan($FormPostValues, $CurrentBan);
   }
public function Save ( $ FormPostValues , $ Settings = FALSE ) { $ CurrentBanID = GetValue ( 'BanID' , $ FormPostValues ) ; // Get the current ban before saving. if ( $ CurrentBanID ) $ CurrentBan = $ this -> GetID ( $ CurrentBanID , DATASET_TYPE_ARRAY ) ; else $ CurrentBan = NULL ; $ this -> SetCounts ( $ FormPostValues ) ; $ BanID = parent :: Save ( $ FormPostValues , $ Settings ) ; $ FormPostValues [ 'BanID' ] = $ BanID ; $ this -> ApplyBan ( $ FormPostValues , $ CurrentBan ) ; }
Save data about ban from form.

@since 2.0.18
@access public

@param array $FormPostValues
@param array $Settings
Save data about ban from form .