Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82723714
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, Sep 13, 02:19
Size
753 B
Mime Type
text/x-php
Expires
Sun, Sep 15, 02:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20740586
Attached To
rPH Phabricator
PhabricatorCalendarEventDateTransaction.php
View Options
<?php
abstract
class
PhabricatorCalendarEventDateTransaction
extends
PhabricatorCalendarEventTransactionType
{
abstract
protected
function
getInvalidDateMessage
();
public
function
generateNewValue
(
$object
,
$value
)
{
$editor
=
$this
->
getEditor
();
return
$value
->
newPhutilDateTime
()
->
setIsAllDay
(
$editor
->
getNewIsAllDay
())
->
newAbsoluteDateTime
()
->
toDictionary
();
}
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