~ubuntu-branches/ubuntu/wily/phabricator/wily

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

final class PhabricatorAuthInvitePHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'AINV';

  public function getTypeName() {
    return pht('Auth Invite');
  }

  public function newObject() {
    return new PhabricatorAuthInvite();
  }

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {
    throw new PhutilMethodNotImplementedException();
  }

  public function loadHandles(
    PhabricatorHandleQuery $query,
    array $handles,
    array $objects) {

    foreach ($handles as $phid => $handle) {
      $invite = $objects[$phid];
    }
  }

}