Page MenuHomec4science

PholioMockRelationship.php
No OneTemporary

File Metadata

Created
Fri, Nov 29, 21:33

PholioMockRelationship.php

<?php
abstract class PholioMockRelationship
extends PhabricatorObjectRelationship {
public function isEnabledForObject($object) {
$viewer = $this->getViewer();
$has_app = PhabricatorApplication::isClassInstalledForViewer(
'PhabricatorPholioApplication',
$viewer);
if (!$has_app) {
return false;
}
return ($object instanceof PholioMock);
}
}

Event Timeline