Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
scrutaridata:impl:mediawiki [2009/12/17 11:27] – modification externe 127.0.0.1 | scrutaridata:impl:mediawiki [2016/07/06 18:38] (Version actuelle) – [class-MediawikiScrutariDataWriter.php] vincent | ||
---|---|---|---|
Ligne 17: | Ligne 17: | ||
class MediawikiScrutariDataWriter { | class MediawikiScrutariDataWriter { | ||
- | private $uuid; | + | private $authority; |
private $baseName; | private $baseName; | ||
private $baseIcon; | private $baseIcon; | ||
Ligne 28: | Ligne 28: | ||
private $hrefParent; | private $hrefParent; | ||
- | public function | + | public function |
- | $this->uuid = $uuid; | + | $this->authority |
} | } | ||
Ligne 69: | Ligne 69: | ||
public function writeScrutariData($file) { | public function writeScrutariData($file) { | ||
- | $xmlWriter = new UtilXmlWriter($file); | + | |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | + | ||
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $requete = " | + | |
- | + | ||
- | $resultat = mysql_query($requete); | + | $resultat = mysql_query($requete); |
- | + | ||
- | while($row = mysql_fetch_row($resultat)) { | + | while($row = mysql_fetch_row($resultat)) { |
- | $page_id = $row[0]; | + | $page_id = $row[0]; |
- | $page_title = $row[1]; | + | $page_title = $row[1]; |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $titre = str_replace(" | + | $titre = str_replace(" |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $href = rawurlencode($page_title); | + | $href = rawurlencode($page_title); |
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
- | } | + | } |
- | + | ||
- | $xmlWriter-> | + | $xmlWriter-> |
- | $xmlWriter-> | + | $xmlWriter-> |
} | } | ||