Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56970814
newyorktimes.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
804 B
Referenced Files
None
Subscribers
None
newyorktimes.php
View Options
<?php
//Page analysis for www.nytimes.com
class
NewYorkTimesPage
extends
Page
{
function
analyse
()
{
parent
::
analyse
();
//Hardcoded known info
$this
->
site
=
"[[The New York Times]]"
;
$this
->
skipYMD
=
true
;
//Gets date from pdate metatag
$yyyy
=
substr
(
$this
->
meta_tags
[
'pdate'
],
0
,
4
);
$mm
=
substr
(
$this
->
meta_tags
[
'pdate'
],
4
,
2
);
$dd
=
substr
(
$this
->
meta_tags
[
'pdate'
],
6
,
2
);
$this
->
unixtime
=
mktime
(
0
,
0
,
0
,
$mm
,
$dd
,
$yyyy
);
$this
->
date
=
strftime
(
LONG_DATE_FORMAT
,
$this
->
unixtime
);
//Gets author
//TODO: Handle the several authors case
require
(
'helpers/namecase.php'
);
$author
=
substr
(
$this
->
meta_tags
[
'byl'
],
3
);
$this
->
author
=
name_case
(
$author
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 14, 02:45 (1 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4249260
Default Alt Text
newyorktimes.php (804 B)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment