Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56963677
lavenir.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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
Fri, Nov 13, 21:41 (13 h, 37 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4253190
Default Alt Text
lavenir.php (758 B)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment