Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122729706
PhabricatorCalendarICSImportEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 21, 19:29
Size
945 B
Mime Type
text/x-php
Expires
Wed, Jul 23, 19:29 (2 d)
Engine
blob
Format
Raw Data
Handle
27529445
Attached To
rPH Phabricator
PhabricatorCalendarICSImportEngine.php
View Options
<?php
abstract
class
PhabricatorCalendarICSImportEngine
extends
PhabricatorCalendarImportEngine
{
final
protected
function
importICSData
(
PhabricatorUser
$viewer
,
PhabricatorCalendarImport
$import
,
$data
)
{
$parser
=
new
PhutilICSParser
();
try
{
$document
=
$parser
->
parseICSData
(
$data
);
}
catch
(
PhutilICSParserException
$ex
)
{
// TODO: In theory, it would be nice to store these in a fully abstract
// form so they can be translated at display time. As-is, we'll store the
// error messages in whatever language we were using when the parser
// failure occurred.
$import
->
newLogMessage
(
PhabricatorCalendarImportICSLogType
::
LOGTYPE
,
array
(
'ics.code'
=>
$ex
->
getParserFailureCode
(),
'ics.message'
=>
$ex
->
getMessage
(),
));
$document
=
null
;
}
return
$this
->
importEventDocument
(
$viewer
,
$import
,
$document
);
}
}
Event Timeline
Log In to Comment