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 PhabricatorCalendarEventFulltextEngine extends PhabricatorFulltextEng..

Decoded Output download

<?php

final class PhabricatorCalendarEventFulltextEngine
  extends PhabricatorFulltextEngine {

  protected function buildAbstractDocument(
    PhabricatorSearchAbstractDocument $document,
    $object) {

    $event = $object;

    $document->setDocumentTitle($event->getName());

    $document->addField(
      PhabricatorSearchDocumentFieldType::FIELD_BODY,
      $event->getDescription());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
      $event->getHostPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $event->getDateCreated());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_OWNER,
      $event->getHostPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $event->getDateCreated());

    $document->addRelationship(
      $event->getIsCancelled()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $event->getPHID(),
      PhabricatorCalendarEventPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorCalendarEventFulltextEngine
  extends PhabricatorFulltextEngine {

  protected function buildAbstractDocument(
    PhabricatorSearchAbstractDocument $document,
    $object) {

    $event = $object;

    $document->setDocumentTitle($event->getName());

    $document->addField(
      PhabricatorSearchDocumentFieldType::FIELD_BODY,
      $event->getDescription());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
      $event->getHostPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $event->getDateCreated());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_OWNER,
      $event->getHostPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $event->getDateCreated());

    $document->addRelationship(
      $event->getIsCancelled()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $event->getPHID(),
      PhabricatorCalendarEventPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}

Function Calls

None

Variables

None

Stats

MD5 14ac0d844140d836df7ae1fd751504b6
Eval Count 0
Decode Time 85 ms