Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1436739
PhabricatorPackagesQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
855 B
Referenced Files
None
Subscribers
None
PhabricatorPackagesQuery.php
View Options
<?php
abstract
class
PhabricatorPackagesQuery
extends
PhabricatorCursorPagedPolicyAwareQuery
{
public
function
getQueryApplicationClass
()
{
return
PhabricatorPackagesApplication
::
class
;
}
protected
function
buildFullKeyClauseParts
(
AphrontDatabaseConnection
$conn
,
array
$full_keys
)
{
$parts
=
array
();
foreach
(
$full_keys
as
$full_key
)
{
$key_parts
=
explode
(
'/'
,
$full_key
,
2
);
if
(
count
(
$key_parts
)
!=
2
)
{
continue
;
}
$parts
[]
=
qsprintf
(
$conn
,
'(u.publisherKey = %s AND p.packageKey = %s)'
,
$key_parts
[
0
],
$key_parts
[
1
]);
}
// If none of the full keys we were provided were valid, we don't
// match any results.
if
(!
$parts
)
{
throw
new
PhabricatorEmptyQueryException
();
}
return
qsprintf
(
$conn
,
'%LO'
,
$parts
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 10, 11:15 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
335061
Default Alt Text
PhabricatorPackagesQuery.php (855 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment