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 PhrequentPushConduitAPIMethod extends PhrequentConduitAPIMethod { pu..

Decoded Output download

<?php

final class PhrequentPushConduitAPIMethod extends PhrequentConduitAPIMethod {

  public function getAPIMethodName() {
    return 'phrequent.push';
  }

  public function getMethodDescription() {
    return pht(
      'Start tracking time on an object by '.
      'pushing it on the tracking stack.');
  }

  public function getMethodStatus() {
    return self::METHOD_STATUS_UNSTABLE;
  }

  protected function defineParamTypes() {
    return array(
      'objectPHID' => 'required phid',
      'startTime' => 'int',
    );
  }

  protected function defineReturnType() {
    return 'phid';
  }

  protected function execute(ConduitAPIRequest $request) {
    $user = $request->getUser();
    $object_phid = $request->getValue('objectPHID');
    $timestamp = $request->getValue('startTime');
    if ($timestamp === null) {
      $timestamp = time();
    }

    $editor = new PhrequentTrackingEditor();
    return $editor->startTracking($user, $object_phid, $timestamp);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhrequentPushConduitAPIMethod extends PhrequentConduitAPIMethod {

  public function getAPIMethodName() {
    return 'phrequent.push';
  }

  public function getMethodDescription() {
    return pht(
      'Start tracking time on an object by '.
      'pushing it on the tracking stack.');
  }

  public function getMethodStatus() {
    return self::METHOD_STATUS_UNSTABLE;
  }

  protected function defineParamTypes() {
    return array(
      'objectPHID' => 'required phid',
      'startTime' => 'int',
    );
  }

  protected function defineReturnType() {
    return 'phid';
  }

  protected function execute(ConduitAPIRequest $request) {
    $user = $request->getUser();
    $object_phid = $request->getValue('objectPHID');
    $timestamp = $request->getValue('startTime');
    if ($timestamp === null) {
      $timestamp = time();
    }

    $editor = new PhrequentTrackingEditor();
    return $editor->startTracking($user, $object_phid, $timestamp);
  }

}

Function Calls

None

Variables

None

Stats

MD5 5c06db8574fa1b39115633a2e7e425e8
Eval Count 0
Decode Time 105 ms