Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F971252
ConduitAPI_project_Method.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ConduitAPI_project_Method.php
View Options
<?php
abstract
class
ConduitAPI_project_Method
extends
ConduitAPIMethod
{
public
function
getApplication
()
{
return
PhabricatorApplication
::
getByClass
(
'PhabricatorProjectApplication'
);
}
protected
function
buildProjectInfoDictionary
(
PhabricatorProject
$project
)
{
$results
=
$this
->
buildProjectInfoDictionaries
(
array
(
$project
));
return
idx
(
$results
,
$project
->
getPHID
());
}
protected
function
buildProjectInfoDictionaries
(
array
$projects
)
{
assert_instances_of
(
$projects
,
'PhabricatorProject'
);
if
(!
$projects
)
{
return
array
();
}
$result
=
array
();
foreach
(
$projects
as
$project
)
{
$member_phids
=
$project
->
getMemberPHIDs
();
$member_phids
=
array_values
(
$member_phids
);
$project_slugs
=
$project
->
getSlugs
();
$project_slugs
=
array_values
(
mpull
(
$project_slugs
,
'getSlug'
));
$result
[
$project
->
getPHID
()]
=
array
(
'id'
=>
$project
->
getID
(),
'phid'
=>
$project
->
getPHID
(),
'name'
=>
$project
->
getName
(),
'members'
=>
$member_phids
,
'slugs'
=>
$project_slugs
,
'dateCreated'
=>
$project
->
getDateCreated
(),
'dateModified'
=>
$project
->
getDateModified
(),
);
}
return
$result
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 5:41 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
226035
Default Alt Text
ConduitAPI_project_Method.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment