Exemplo n.º 1
0
    ossim_valid($ventity, OSS_HEX, OSS_NULLABLE, 'illegal:' . _("Entity"));
    ossim_valid($title, OSS_TEXT, 'illegal:' . _("Tittle"));
    ossim_valid($keywords, OSS_TEXT, OSS_NULLABLE, 'illegal:' . _("Keywords"));
    if (ossim_error()) {
        $info_error[] = ossim_get_error();
        ossim_clean_error();
        $error = true;
    }
    if ($doctext == "") {
        $info_error[] = _("Error in the 'text' field (missing required field)");
        $error = true;
    }
    if ($error == false) {
        $parser = new KDB_Parser();
        $parser->proccess_file($doctext, $id_document);
        $info_error = $parser->is_valid();
        if (count($info_error) > 0) {
            $error = true;
        }
    }
    if ($error == false) {
        Repository::update($conn, $id_document, $title, $doctext, $keywords);
    }
}
$sintax = new KDB_Sintax();
$labels_condition = $sintax->_labels_condition;
$labels_actions = $sintax->_labels_actions;
$labels_operators = $sintax->_labels_operators;
$labels_variables = $sintax->_labels_variables;
$help_msgs = array();
?>