protected function displayControls($save = false, $show_edit = true)
 {
     if ($save) {
         parent::displayControls($save, $show_edit);
     } else {
         $this->template->addFile('button_confirm_notchild.html');
     }
 }
 /**
  * Display the save or confirm buttons as needed.
  * 
  * If the page is a confirmation view then the save / edit button template will be displayed.  
  * Otherwise the confirm and return buttons will be shown.
  * @param boolean $save Flag to show the save button. (Defaults to false)
  * @param boolean $show_edit (defaults to true)
  * @global array
  */
 protected function displayControls($save = false, $show_edit = true)
 {
     parent::displayControls($save, $show_edit);
     if (($node = $this->template->getElementByID('button_return')) instanceof DOMElement) {
         $node->setAttribute('href', $this->getParentLink(false));
     }
 }
 /** 
  * Display the save or confirm buttons as needed.
  * 
  * If the page is a confirmation view then the save / edit button template will be displayed.  
  * Otherwise the confirm and return buttons will be shown.
  * @param boolean $save Flag to show the save button. (Defaults to false)
  * @param boolean $show_edit (defaults to true)
  * @global array
  */
 protected function displayControls($save = false, $show_edit = true)
 {
     if ($save) {
         parent::displayControls($save, $show_edit);
     } elseif ($this->getPrimary()->getId() != '0') {
         $this->template->addFile('button_provider_confirm_notchild.html');
     } else {
         $node = $this->template->addFile('button_provider_confirm_notchild.html');
         $return = $this->template->getElementById("button_return", $node);
         if ($return instanceof DOMElement) {
             $return->setAttribute("href", "manage?action=provider");
             $return->setAttribute("no_value", "true");
         }
     }
 }
 /**
  * Display the save or confirm buttons as needed.
  * 
  * If the page is a confirmation view then the save / edit button template will be displayed.  
  * Otherwise the confirm and return buttons will be shown.
  * @param boolean $save Flag to show the save button. (Defaults to false)
  * @param boolean $show_edit (defaults to true)
  * @global array
  */
 protected function displayControls($save = false, $show_edit = true)
 {
     parent::displayControls($save, $show_edit);
     if (($return_node = $this->template->getElementByID('button_return')) instanceof DOMElement) {
         //$return_node->setAttribute('name','id');
         $return_node->setAttribute('href', $this->getReturnLink($this->getPrimary()->getID() != '0'));
     }
 }
 /**
  * Display the save or confirm buttons as needed.
  * 
  * If the page is a confirmation view then the save / edit button template will be displayed.  
  * Otherwise the confirm and return buttons will be shown.
  * @param boolean $save Flag to show the save button. (Defaults to false)
  * @param boolean $show_edit (defaults to true)
  * @global array
  */
 protected function displayControls($save = false, $show_edit = true)
 {
     parent::displayControls($save, $show_edit);
     $node = $this->template->getELementById('button_return');
     if ($node instanceof DOMElement) {
         $node->setAttribute('href', 'view?id=person|' . $this->person_id . '&person_position=');
         //cheating a bit here.
     }
 }