Пример #1
0
 function processForm($form)
 {
     $values = $form->processInput($_POST);
     foreach ($values as $key => $value) {
         SqlQuery::update($this->db, 'site_globals', ['site_global_value' => $value], 'site_global_name = ?', [$key]);
         $this[$key] = $value;
     }
 }