Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108909104
PhabricatorCalendarEventDateTransaction.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
Sat, Apr 19, 01:14
Size
610 B
Mime Type
text/x-php
Expires
Mon, Apr 21, 01:14 (2 d)
Engine
blob
Format
Raw Data
Handle
25660862
Attached To
rPH Phabricator
PhabricatorCalendarEventDateTransaction.php
View Options
<?php
abstract
class
PhabricatorCalendarEventDateTransaction
extends
PhabricatorCalendarEventTransactionType
{
abstract
protected
function
getInvalidDateMessage
();
public
function
generateNewValue
(
$object
,
$value
)
{
return
$value
->
getEpoch
();
}
public
function
validateTransactions
(
$object
,
array
$xactions
)
{
$errors
=
array
();
foreach
(
$xactions
as
$xaction
)
{
if
(
$xaction
->
getNewValue
()->
isValid
())
{
continue
;
}
$message
=
$this
->
getInvalidDateMessage
();
$errors
[]
=
$this
->
newInvalidError
(
$message
,
$xaction
);
}
return
$errors
;
}
}
Event Timeline
Log In to Comment