Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77873472
PhabricatorListFilterUIExample.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
Fri, Aug 16, 22:38
Size
798 B
Mime Type
text/x-php
Expires
Sun, Aug 18, 22:38 (2 d)
Engine
blob
Format
Raw Data
Handle
19911860
Attached To
rPH Phabricator
PhabricatorListFilterUIExample.php
View Options
<?php
final
class
PhabricatorListFilterUIExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
pht
(
'ListFilter'
);
}
public
function
getDescription
()
{
return
pht
(
'Use %s to layout controls for filtering '
.
'and manipulating lists of objects.'
,
phutil_tag
(
'tt'
,
array
(),
'AphrontListFilterView'
));
}
public
function
renderExample
()
{
$filter
=
new
AphrontListFilterView
();
$form
=
new
AphrontFormView
();
$form
->
setUser
(
$this
->
getRequest
()->
getUser
());
$form
->
appendChild
(
id
(
new
AphrontFormTextControl
())
->
setLabel
(
pht
(
'Query'
)))
->
appendChild
(
id
(
new
AphrontFormSubmitControl
())
->
setValue
(
pht
(
'Search'
)));
$filter
->
appendChild
(
$form
);
return
$filter
;
}
}
Event Timeline
Log In to Comment