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 PhabricatorProjectWatcherListView extends PhabricatorProjectUserListV..

Decoded Output download

<?php

final class PhabricatorProjectWatcherListView
  extends PhabricatorProjectUserListView {

  protected function canEditList() {
    $viewer = $this->getViewer();
    $project = $this->getProject();

    return PhabricatorPolicyFilter::hasCapability(
      $viewer,
      $project,
      PhabricatorPolicyCapability::CAN_EDIT);
  }

  protected function getNoDataString() {
    return pht('This project does not have any watchers.');
  }

  protected function getRemoveURI($phid) {
    $project = $this->getProject();
    $id = $project->getID();
    return "/project/watchers/{$id}/remove/?phid={$phid}";
  }

  protected function getHeaderText() {
    return pht('Watchers');
  }

  protected function getMembershipNote() {
    $viewer = $this->getViewer();
    $viewer_phid = $viewer->getPHID();
    $project = $this->getProject();

    $note = null;
    if ($project->isUserWatcher($viewer_phid)) {
      $note = pht('You are watching this project and will receive mail about '.
                  'changes made to any related object.');
    }
    return $note;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorProjectWatcherListView
  extends PhabricatorProjectUserListView {

  protected function canEditList() {
    $viewer = $this->getViewer();
    $project = $this->getProject();

    return PhabricatorPolicyFilter::hasCapability(
      $viewer,
      $project,
      PhabricatorPolicyCapability::CAN_EDIT);
  }

  protected function getNoDataString() {
    return pht('This project does not have any watchers.');
  }

  protected function getRemoveURI($phid) {
    $project = $this->getProject();
    $id = $project->getID();
    return "/project/watchers/{$id}/remove/?phid={$phid}";
  }

  protected function getHeaderText() {
    return pht('Watchers');
  }

  protected function getMembershipNote() {
    $viewer = $this->getViewer();
    $viewer_phid = $viewer->getPHID();
    $project = $this->getProject();

    $note = null;
    if ($project->isUserWatcher($viewer_phid)) {
      $note = pht('You are watching this project and will receive mail about '.
                  'changes made to any related object.');
    }
    return $note;
  }

}

Function Calls

None

Variables

None

Stats

MD5 e6b3d38349a71b3088f7040800f97512
Eval Count 0
Decode Time 115 ms