Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105850549
PHUISpacesNamespaceContextView.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
Thu, Mar 20, 06:22
Size
655 B
Mime Type
text/x-php
Expires
Sat, Mar 22, 06:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24989394
Attached To
rPH Phabricator
PHUISpacesNamespaceContextView.php
View Options
<?php
final
class
PHUISpacesNamespaceContextView
extends
AphrontView
{
private
$object
;
public
function
setObject
(
$object
)
{
$this
->
object
=
$object
;
return
$this
;
}
public
function
getObject
()
{
return
$this
->
object
;
}
public
function
render
()
{
$object
=
$this
->
getObject
();
$space_phid
=
PhabricatorSpacesNamespaceQuery
::
getObjectSpacePHID
(
$object
);
if
(!
$space_phid
)
{
return
null
;
}
$viewer
=
$this
->
getUser
();
return
phutil_tag
(
'span'
,
array
(
'class'
=>
'spaces-name'
,
),
array
(
$viewer
->
renderHandle
(
$space_phid
),
' | '
,
));
}
}
Event Timeline
Log In to Comment