Skip to content
Extraits de code Groupes Projets
Valider 73c17d71 rédigé par Christian Lefebvre's avatar Christian Lefebvre
Parcourir les fichiers

autodoc

parent bab1ead5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -16,21 +16,27 @@ include_spip('inc/sax');
class IndenteurXML {
// http://doc.spip.org/@debutElement
function debutElement($phraseur, $name, $attrs)
{ xml_debutElement($phraseur, $name, $attrs);}
// http://doc.spip.org/@finElement
function finElement($phraseur, $name)
{ xml_finElement($phraseur, $name);}
// http://doc.spip.org/@textElement
function textElement($phraseur, $data)
{ xml_textElement($phraseur, $data);}
// http://doc.spip.org/@PiElement
function PiElement($phraseur, $target, $data)
{ xml_PiElement($phraseur, $target, $data);}
// http://doc.spip.org/@defautElement
function defautElement($phraseur, $data)
{ xml_defautElement($phraseur, $data);}
// http://doc.spip.org/@phraserTout
function phraserTout($phraseur, $data)
{
xml_parsestring($phraseur, $data);
......@@ -46,6 +52,7 @@ function phraserTout($phraseur, $data)
var $entites = array();
}
// http://doc.spip.org/@inc_indenter_xml_dist
function inc_indenter_xml_dist($page, $apply=false)
{
$sax = charger_fonction('sax', 'inc');
......
......@@ -15,7 +15,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return;
include_spip('inc/filtres');
include_spip('inc/charsets');
// http://doc.spip.org/@debutElement
// http://doc.spip.org/@xml_debutElement
function xml_debutElement($parser, $name, $attrs)
{
global $phraseur_xml;
......@@ -51,7 +51,7 @@ function xml_debutElement($parser, $name, $attrs)
$reperes[$depth] = xml_get_current_line_number($parser);
}
// http://doc.spip.org/@finElement
// http://doc.spip.org/@xml_finElement
function xml_finElement($parser, $name, $fusion_bal=false)
{
global $phraseur_xml;
......@@ -79,7 +79,7 @@ function xml_finElement($parser, $name, $fusion_bal=false)
$phraseur_xml->res .= ($ouv ? ('<' . $ouv . ' />') : ("</" . $name . ">"));
}
// http://doc.spip.org/@textElement
// http://doc.spip.org/@xml_textElement
function xml_textElement($parser, $data)
{
global $phraseur_xml;
......@@ -91,7 +91,7 @@ function xml_textElement($parser, $data)
: entites_html($data);
}
// http://doc.spip.org/@PiElement
// http://doc.spip.org/@xml_PiElement
function xml_PiElement($parser, $target, $data)
{
global $phraseur_xml;
......@@ -109,7 +109,7 @@ function xml_PiElement($parser, $target, $data)
}
// http://doc.spip.org/@defautElement
// http://doc.spip.org/@xml_defautElement
function xml_defautElement($parser, $data)
{
global $phraseur_xml;
......@@ -153,6 +153,7 @@ function coordonnees_erreur($xml_parser)
xml_get_current_column_number($xml_parser);
}
// http://doc.spip.org/@inc_sax_dist
function inc_sax_dist($page, $apply=false)
{
global $phraseur_xml;
......
......@@ -17,6 +17,7 @@ include_spip('inc/sax');
define('_REGEXP_DOCTYPE',
'/^\s*(<[?][^>]*>\s*)?<!DOCTYPE\s+(\w+)\s+(\w+)\s*([^>]*)>/');
// http://doc.spip.org/@validateur
function validateur($data)
{
global $phraseur_xml;
......@@ -225,6 +226,7 @@ function validerAttribut($parser, $name, $val, $bal)
class ValidateurXML {
// http://doc.spip.org/@debutElement
function debutElement($phraseur, $name, $attrs)
{
......@@ -235,6 +237,7 @@ function debutElement($phraseur, $name, $attrs)
}
}
// http://doc.spip.org/@finElement
function finElement($phraseur, $name)
{
global $phraseur_xml;
......@@ -243,15 +246,19 @@ function finElement($phraseur, $name)
$phraseur_xml->elements[$name][0] == 'EMPTY');
}
// http://doc.spip.org/@textElement
function textElement($phraseur, $data)
{ xml_textElement($phraseur, $data);}
// http://doc.spip.org/@PiElement
function PiElement($phraseur, $target, $data)
{ xml_PiElement($phraseur, $target, $data);}
// http://doc.spip.org/@defautElement
function defautElement($phraseur, $data)
{ xml_defautElement($phraseur, $data);}
// http://doc.spip.org/@phraserTout
function phraserTout($phraseur, $data)
{
validateur($data);
......@@ -290,6 +297,7 @@ function phraserTout($phraseur, $data)
var $err = array();
}
// http://doc.spip.org/@inc_valider_xml_dist
function inc_valider_xml_dist($page, $apply=false)
{
$sax = charger_fonction('sax', 'inc');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter