Changeset View
Changeset View
Standalone View
Standalone View
src/view/AphrontDialogView.php
<?php | <?php | ||||
final class AphrontDialogView extends AphrontView { | final class AphrontDialogView | ||||
extends AphrontView | |||||
implements AphrontResponseProducerInterface { | |||||
private $title; | private $title; | ||||
private $shortTitle; | private $shortTitle; | ||||
private $submitButton; | private $submitButton; | ||||
private $cancelURI; | private $cancelURI; | ||||
private $cancelText = 'Cancel'; | private $cancelText = 'Cancel'; | ||||
private $submitURI; | private $submitURI; | ||||
private $hidden = array(); | private $hidden = array(); | ||||
▲ Show 20 Lines • Show All 354 Lines • ▼ Show 20 Lines | public function render() { | ||||
} else { | } else { | ||||
return javelin_tag( | return javelin_tag( | ||||
'div', | 'div', | ||||
$attributes, | $attributes, | ||||
$content); | $content); | ||||
} | } | ||||
} | } | ||||
/* -( AphrontResponseProducerInterface )----------------------------------- */ | |||||
public function produceAphrontResponse() { | |||||
return id(new AphrontDialogResponse()) | |||||
->setDialog($this); | |||||
} | |||||
} | } |