<?php

/**
 * @group phriction
 */
final class PhrictionDocumentStatus extends PhrictionConstants {

  const STATUS_EXISTS     = 0;
  const STATUS_DELETED    = 1;
  const STATUS_STUB       = 3;

  public static function getConduitConstant($const) {
    static $map = array(
      self::STATUS_EXISTS   => 'exists',
      self::STATUS_DELETED   => 'deleted',
      self::STATUS_STUB      => 'stubbed',
    );

    return idx($map, $const, 'unknown');
  }

}

<?php

/**
 * @group phriction
 */
final class PhrictionDocumentStatus extends PhrictionConstants {

  const STATUS_EXISTS     = 0;
  const STATUS_DELETED    = 1;
  const STATUS_MOVED      = 2;
  const STATUS_STUB       = 3;

  public static function getConduitConstant($const) {
    static $map = array(
      self::STATUS_EXISTS   => 'exists',
      self::STATUS_DELETED   => 'deleted',
      self::STATUS_STUB      => 'stubbed',
    );

    return idx($map, $const, 'unknown');
  }

}

Define STATUS_MOVED constant ahead of its implementation
Define STATUS_MOVED constant ahead of its implementation

Summary: I landed some patches out of order and we haven't landed the one which actually implements this yet. Define the constant for now.

Test Plan: Deleted a page in Phriction without issue.

Reviewers: AnhNhan

Reviewed By: AnhNhan

CC: aran

Differential Revision: https://secure.phabricator.com/D5207
