public function renderExample()
 {
     $request = $this->getRequest();
     $user = $request->getUser();
     $notices = array();
     if ($request->isFormPost()) {
         $notices[] = 'You just submitted a valid form POST.';
     }
     if ($request->isJavelinWorkflow()) {
         $notices[] = 'You just submitted a Workflow request.';
     }
     if ($notices) {
         $notices = id(new AphrontErrorView())->setSeverity(AphrontErrorView::SEVERITY_NOTICE)->setErrors($notices);
     } else {
         $notices = null;
     }
     if ($request->isJavelinWorkflow()) {
         $dialog = new AphrontDialogView();
         $dialog->setUser($user);
         $dialog->setTitle('Request Information');
         $dialog->appendChild($notices);
         $dialog->addCancelButton($request->getRequestURI(), 'Close');
         return id(new AphrontDialogResponse())->setDialog($dialog);
     }
     $view = new PhabricatorActionListView();
     $view->setUser($user);
     $view->addAction(id(new PhabricatorActionView())->setUser($user)->setHref($request->getRequestURI())->setName('Normal Action')->setIcon('file'));
     $view->addAction(id(new PhabricatorActionView())->setUser($user)->setHref($request->getRequestURI())->setDisabled(true)->setName('Disabled Action')->setIcon('file'));
     $view->addAction(id(new PhabricatorActionView())->setUser($user)->setHref($request->getRequestURI())->setRenderAsForm(true)->setName('Form Action')->setIcon('file'));
     $view->addAction(id(new PhabricatorActionView())->setUser($user)->setHref($request->getRequestURI())->setRenderAsForm(true)->setDisabled(true)->setName('Disabled Form Action')->setIcon('file'));
     $view->addAction(id(new PhabricatorActionView())->setUser($user)->setHref($request->getRequestURI())->setWorkflow(true)->setName('Workflow Action')->setIcon('file'));
     $view->addAction(id(new PhabricatorActionView())->setUser($user)->setHref($request->getRequestURI())->setRenderAsForm(true)->setWorkflow(true)->setName('Form + Workflow Action')->setIcon('file'));
     return array($view, '<div style="clear: both;"></div>', $notices);
 }
 private function buildActionListView(PonderQuestion $question)
 {
     $viewer = $this->getRequest()->getUser();
     $view = new PhabricatorActionListView();
     $view->setUser($viewer);
     $view->setObject($question);
     return $view;
 }