Page MenuHomePhorge

AphrontFormHandlesControl.php
No OneTemporary

Size
783 B
Referenced Files
None
Subscribers
None

AphrontFormHandlesControl.php

<?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

Mime Type
text/x-php
Expires
Tue, Jul 1, 9:24 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
288321
Default Alt Text
AphrontFormHandlesControl.php (783 B)

Event Timeline