Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83215826
ConduitAPI_repository_query_Method.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 15, 19:57
Size
888 B
Mime Type
text/x-php
Expires
Tue, Sep 17, 19:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20802785
Attached To
rPH Phabricator
ConduitAPI_repository_query_Method.php
View Options
<?php
/**
* @group conduit
*/
final
class
ConduitAPI_repository_query_Method
extends
ConduitAPI_repository_Method
{
public
function
getMethodStatus
()
{
return
self
::
METHOD_STATUS_UNSTABLE
;
}
public
function
getMethodStatusDescription
()
{
return
"Repository methods are new and subject to change."
;
}
public
function
getMethodDescription
()
{
return
"Query repositories."
;
}
public
function
defineParamTypes
()
{
return
array
(
);
}
public
function
defineReturnType
()
{
return
'list<dict>'
;
}
public
function
defineErrorTypes
()
{
return
array
(
);
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$repositories
=
id
(
new
PhabricatorRepository
())->
loadAll
();
$results
=
array
();
foreach
(
$repositories
as
$repository
)
{
$results
[]
=
$repository
->
toDictionary
();
}
return
$results
;
}
}
Event Timeline
Log In to Comment