2011-12-17 18:19:08 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @group phriction
|
|
|
|
*/
|
|
|
|
final class PhrictionDocumentStatus extends PhrictionConstants {
|
|
|
|
|
|
|
|
const STATUS_EXISTS = 0;
|
|
|
|
const STATUS_DELETED = 1;
|
2013-03-04 18:26:02 +01:00
|
|
|
const STATUS_MOVED = 2;
|
2013-03-04 16:31:59 +01:00
|
|
|
const STATUS_STUB = 3;
|
2011-12-17 18:19:08 +01:00
|
|
|
|
|
|
|
public static function getConduitConstant($const) {
|
|
|
|
static $map = array(
|
|
|
|
self::STATUS_EXISTS => 'exists',
|
|
|
|
self::STATUS_DELETED => 'deleted',
|
2013-03-04 16:31:59 +01:00
|
|
|
self::STATUS_STUB => 'stubbed',
|
2011-12-17 18:19:08 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
return idx($map, $const, 'unknown');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|