public static function edit()
 {
     $rules = self::getRules();
     $rules["id"] = ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 1]];
     $data = filter_input_array(INPUT_POST, $rules);
     if (self::checkValues($data)) {
         TekmaDB::update($data);
         echo ViewHelper::render("view/editor/main-editor.php");
     } else {
         self::editForm($data);
     }
 }