~ubuntu-branches/ubuntu/vivid/phabricator/vivid-proposed

« back to all changes in this revision

Viewing changes to phabricator/src/applications/harbormaster/phid/HarbormasterBuildLogPHIDType.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-10-23 20:49:26 UTC
  • Revision ID: package-import@ubuntu.com-20141023204926-ar20vnfjqwxysrce
Tags: upstream-0~git20141023
ImportĀ upstreamĀ versionĀ 0~git20141023

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
final class HarbormasterBuildLogPHIDType extends PhabricatorPHIDType {
 
4
 
 
5
  const TYPECONST = 'HMCL';
 
6
 
 
7
  public function getTypeName() {
 
8
    return pht('Build Log');
 
9
  }
 
10
 
 
11
  public function newObject() {
 
12
    return new HarbormasterBuildLog();
 
13
  }
 
14
 
 
15
  protected function buildQueryForObjects(
 
16
    PhabricatorObjectQuery $query,
 
17
    array $phids) {
 
18
 
 
19
    return id(new HarbormasterBuildLogQuery())
 
20
      ->withPHIDs($phids);
 
21
  }
 
22
 
 
23
  public function loadHandles(
 
24
    PhabricatorHandleQuery $query,
 
25
    array $handles,
 
26
    array $objects) {
 
27
 
 
28
    foreach ($handles as $phid => $handle) {
 
29
      $build_log = $objects[$phid];
 
30
    }
 
31
  }
 
32
 
 
33
}