Page MenuHomeDevCentral

No OneTemporary

diff --git a/pages/index.dat b/pages/index.dat
index 5fed532..b4467a1 100644
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -1,24 +1,25 @@
http://archives.lesoir.be/ ArchivesLeSoir
http://next.liberation.fr/ Liberation
http://onlinelibrary.wiley.com/ Wiley
http://rue89.nouvelobs.com/ Rue89
http://www.animeland.fr/ AnimeLand
http://www.animenewsnetwork.com/ AnimeNewsNetwork
http://www.chroniquesautomatiques.com/ LesChroniquesAutomatiques
http://www.crunchyroll.com/ CrunchyRoll
http://www.erudit.org/ Erudit
http://www.footofeminin.fr/ FootOFeminin
http://www.formula1.com/ Formula1
http://www.huffingtonpost.fr/ HuffingtonPostFrance
http://www.jstor.org/ JSTOR
http://www.lalibre.be/ LaLibreBelgique
http://www.latimes.com/ LosAngelesTimes
+http://www.lavenir.net/ LAvenir
http://www.lefigaro.fr/ LeFigaro
http://www.lemonde.fr/ LeMonde
http://www.leparisien.fr/ LeParisien
http://www.lesoir.be/ LeSoir
http://www.liberation.fr/ Liberation
http://www.nytimes.com/ NewYorkTimes
http://www.persee.fr/ Persee
http://www.tandfonline.com TaylorAndFrancis
http://www.worldcat.org/ WorldCat
diff --git a/pages/lavenir.php b/pages/lavenir.php
new file mode 100644
index 0000000..4011f63
--- /dev/null
+++ b/pages/lavenir.php
@@ -0,0 +1,31 @@
+<?php
+
+require_once('helpers/namecase.php');
+
+/**
+ * Represents a page from the http://www.lavenir.net/ site.
+ */
+class LAvenirPage extends Page {
+ /**
+ * Analyses the page and extracts metadata
+ */
+ function analyse () {
+ parent::analyse();
+
+ $author = self::between('<span itemprop="author">', '</span>');
+ $this->author = name_case($author);
+
+ $this->extractDate();
+
+ $this->site = "[[L'Avenir (Belgique)|L'Avenir]]";
+ }
+
+ function extractDate () {
+ $pattern = "/dmf([12][0-9]{3})([0-9]{2})([0-9]{2})/";
+ if (preg_match($pattern, $this->url, $matches)) {
+ $this->yyyy = $matches[1];
+ $this->mm = $matches[2];
+ $this->dd = $matches[3];
+ }
+ }
+}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Oct 11, 20:54 (4 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3062315
Default Alt Text
(2 KB)

Event Timeline