Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F33050185
lavenir.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
758 B
Referenced Files
None
Subscribers
None
lavenir.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 16, 13:51 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3784353
Default Alt Text
lavenir.php (758 B)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment