FluxBB\Models\ConfigRepositoryInterface::has PHP Méthode

has() public méthode

public has ( $key )
    public function has($key);

Usage Example

Exemple #1
0
 /**
  * Run the action and return a response for the user.
  *
  * @return void
  */
 protected function run()
 {
     foreach ($this->input as $key => $value) {
         $key = 'o_' . $key;
         if ($this->config->has($key)) {
             $this->config->set($key, $value);
             $this->raise(new OptionWasChanged($key, $value));
         }
     }
     $this->config->save();
 }