Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56962879
theguardian.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
theguardian.php
View Options
<?php
// Page analysis for www.theguardian.com
class
TheGuardianPage
extends
Page
{
function
analyse
()
{
parent
::
analyse
();
// Hardcoded known info
$this
->
site
=
"[[The Guardian]]"
;
// Gets date from article:published_time metatag
$this
->
yyyy
=
substr
(
$this
->
meta_tags
[
'article:published_time'
],
0
,
4
);
$this
->
mm
=
substr
(
$this
->
meta_tags
[
'article:published_time'
],
4
,
2
);
$this
->
dd
=
ltrim
(
substr
(
$this
->
meta_tags
[
'article:published_time'
],
8
,
2
),
'0'
);
$this
->
unixtime
=
mktime
(
0
,
0
,
0
,
$mm
,
$dd
,
$yyyy
);
// Gets author from author metatag
// TODO Handle multiple authors
$this
->
author
=
$this
->
meta_tags
[
'author'
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 13, 21:10 (1 w, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4248258
Default Alt Text
theguardian.php (732 B)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment