Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71172492
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
Wed, Jul 10, 02:25
Size
798 B
Mime Type
text/x-php
Expires
Fri, Jul 12, 02:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18916724
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