Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1155909
AphrontFormHandlesControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
783 B
Referenced Files
None
Subscribers
None
AphrontFormHandlesControl.php
View Options
<?php
final
class
AphrontFormHandlesControl
extends
AphrontFormControl
{
protected
function
getCustomControlClass
()
{
return
'aphront-form-control-handles'
;
}
protected
function
shouldRender
()
{
return
(
bool
)
$this
->
getValue
();
}
protected
function
renderInput
()
{
$value
=
$this
->
getValue
();
$viewer
=
$this
->
getUser
();
$list
=
$viewer
->
renderHandleList
(
$value
);
$list
=
id
(
new
PHUIBoxView
())
->
addPadding
(
PHUI
::
PADDING_SMALL_TOP
)
->
appendChild
(
$list
);
$inputs
=
array
();
foreach
(
$value
as
$phid
)
{
$inputs
[]
=
phutil_tag
(
'input'
,
array
(
'type'
=>
'hidden'
,
'name'
=>
$this
->
getName
().
'[]'
,
'value'
=>
$phid
,
));
}
return
array
(
$list
,
$inputs
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 1, 9:24 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
288321
Default Alt Text
AphrontFormHandlesControl.php (783 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment