Page MenuHomeDevCentral

leparisien.php
No OneTemporary

leparisien.php

<?php
/**
* Represents a page from the http://www.leparisien.fr/ site.
*/
class LeParisienPage extends Page {
/**
* Analyses the page and extracts metadata
*/
function analyse () {
parent::analyse();
// Hardcoded known info
$this->site = "[[Le Parisien]]";
// From metadata
$this->dateFromDateParse($this->meta_tags['article:published_time']);
$author = $this->meta_tags['creator'];
if ($author === "Le Parisien") {
$this->skipAuthor = true;
} else {
$this->author = $author;
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Sep 14, 16:24 (11 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4074514
Default Alt Text
leparisien.php (606 B)

Event Timeline