Page MenuHomePhorge

No OneTemporary

diff --git a/src/applications/diviner/phid/DivinerAtomPHIDType.php b/src/applications/diviner/phid/DivinerAtomPHIDType.php
index 3ee95c9ea1..7387b0cafe 100644
--- a/src/applications/diviner/phid/DivinerAtomPHIDType.php
+++ b/src/applications/diviner/phid/DivinerAtomPHIDType.php
@@ -1,49 +1,53 @@
<?php
final class DivinerAtomPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'ATOM';
public function getTypeName() {
return pht('Diviner Atom');
}
public function newObject() {
return new DivinerLiveSymbol();
}
+ public function getTypeIcon() {
+ return 'fa-cube';
+ }
+
public function getPHIDTypeApplicationClass() {
return 'PhabricatorDivinerApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new DivinerAtomQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$atom = $objects[$phid];
$book = $atom->getBook()->getName();
$name = $atom->getName();
$type = $atom->getType();
$handle
->setName($atom->getName())
->setTitle($atom->getTitle())
->setURI("/book/{$book}/{$type}/{$name}/")
->setStatus($atom->getGraphHash()
? PhabricatorObjectHandle::STATUS_OPEN
: PhabricatorObjectHandle::STATUS_CLOSED);
}
}
}
diff --git a/src/applications/diviner/phid/DivinerBookPHIDType.php b/src/applications/diviner/phid/DivinerBookPHIDType.php
index 39420ec12c..da08ae3e87 100644
--- a/src/applications/diviner/phid/DivinerBookPHIDType.php
+++ b/src/applications/diviner/phid/DivinerBookPHIDType.php
@@ -1,44 +1,48 @@
<?php
final class DivinerBookPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'BOOK';
public function getTypeName() {
return pht('Diviner Book');
}
public function newObject() {
return new DivinerLiveBook();
}
+ public function getTypeIcon() {
+ return 'fa-book';
+ }
+
public function getPHIDTypeApplicationClass() {
return 'PhabricatorDivinerApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new DivinerBookQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$book = $objects[$phid];
$name = $book->getName();
$handle
->setName($book->getShortTitle())
->setFullName($book->getTitle())
->setURI("/book/{$name}/");
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Jan 19 2025, 19:13 (5 w, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127856
Default Alt Text
(2 KB)

Event Timeline