Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103267864
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
Fri, Feb 28, 17:08
Size
610 B
Mime Type
text/x-php
Expires
Sun, Mar 2, 17:08 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24530830
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