Differential D20859 Diff 49729 src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | if (!$object) { | ||||
pht( | pht( | ||||
'No object "%s" exists.', | 'No object "%s" exists.', | ||||
$object_name)); | $object_name)); | ||||
} | } | ||||
if (!($object instanceof PhabricatorApplicationTransactionInterface)) { | if (!($object instanceof PhabricatorApplicationTransactionInterface)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Object "%s" does not implement "%s", so transactions can not '. | 'Object "%s" (of type "%s") does not implement "%s", so '. | ||||
'be loaded for it.')); | 'transactions can not be loaded for it.', | ||||
$object_name, | |||||
get_class($object), | |||||
'PhabricatorApplicationTransactionInterface')); | |||||
} | } | ||||
$xaction_query = PhabricatorApplicationTransactionQuery::newQueryForObject( | $xaction_query = PhabricatorApplicationTransactionQuery::newQueryForObject( | ||||
$object); | $object); | ||||
$xaction_query | $xaction_query | ||||
->needHandles(false) | ->needHandles(false) | ||||
->withObjectPHIDs(array($object->getPHID())) | ->withObjectPHIDs(array($object->getPHID())) | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |