Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class PhabricatorPeopleAvailabilitySearchEngineAttachment extends Phabricat..
Decoded Output download
<?php
final class PhabricatorPeopleAvailabilitySearchEngineAttachment
extends PhabricatorSearchEngineAttachment {
public function getAttachmentName() {
return pht('User Availability');
}
public function getAttachmentDescription() {
return pht('Get availability information for users.');
}
public function willLoadAttachmentData($query, $spec) {
$query->needAvailability(true);
}
public function getAttachmentForObject($object, $data, $spec) {
$until = $object->getAwayUntil();
if ($until) {
$until = (int)$until;
} else {
$until = null;
}
$value = $object->getDisplayAvailability();
if ($value === null) {
$value = PhabricatorCalendarEventInvitee::AVAILABILITY_AVAILABLE;
}
$name = PhabricatorCalendarEventInvitee::getAvailabilityName($value);
$color = PhabricatorCalendarEventInvitee::getAvailabilityColor($value);
$event_phid = $object->getAvailabilityEventPHID();
return array(
'value' => $value,
'until' => $until,
'name' => $name,
'color' => $color,
'eventPHID' => $event_phid,
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorPeopleAvailabilitySearchEngineAttachment
extends PhabricatorSearchEngineAttachment {
public function getAttachmentName() {
return pht('User Availability');
}
public function getAttachmentDescription() {
return pht('Get availability information for users.');
}
public function willLoadAttachmentData($query, $spec) {
$query->needAvailability(true);
}
public function getAttachmentForObject($object, $data, $spec) {
$until = $object->getAwayUntil();
if ($until) {
$until = (int)$until;
} else {
$until = null;
}
$value = $object->getDisplayAvailability();
if ($value === null) {
$value = PhabricatorCalendarEventInvitee::AVAILABILITY_AVAILABLE;
}
$name = PhabricatorCalendarEventInvitee::getAvailabilityName($value);
$color = PhabricatorCalendarEventInvitee::getAvailabilityColor($value);
$event_phid = $object->getAvailabilityEventPHID();
return array(
'value' => $value,
'until' => $until,
'name' => $name,
'color' => $color,
'eventPHID' => $event_phid,
);
}
}
Function Calls
None |
Stats
MD5 | 57bdc65760e3a0fea1ac309742af6d48 |
Eval Count | 0 |
Decode Time | 104 ms |