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 PhamePostFulltextEngine extends PhabricatorFulltextEngine { protec..

Decoded Output download

<?php

final class PhamePostFulltextEngine
  extends PhabricatorFulltextEngine {

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

    $post = $object;

    $document->setDocumentTitle($post->getTitle());

    $document->addField(
      PhabricatorSearchDocumentFieldType::FIELD_BODY,
      $post->getBody());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
      $post->getBloggerPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $post->getDateCreated());

    $document->addRelationship(
      $post->isArchived()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $post->getPHID(),
      PhabricatorPhamePostPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhamePostFulltextEngine
  extends PhabricatorFulltextEngine {

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

    $post = $object;

    $document->setDocumentTitle($post->getTitle());

    $document->addField(
      PhabricatorSearchDocumentFieldType::FIELD_BODY,
      $post->getBody());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
      $post->getBloggerPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $post->getDateCreated());

    $document->addRelationship(
      $post->isArchived()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $post->getPHID(),
      PhabricatorPhamePostPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}

Function Calls

None

Variables

None

Stats

MD5 cc6216c398853ffae9378fdc2f3e6a52
Eval Count 0
Decode Time 89 ms