/**
  * Append type-specific form elements to the base form
  *
  * @param object form
  * @param integer bannerId
  */
 function buildForm(&$form, &$bannerRow)
 {
     parent::buildForm($form, $bannerRow);
     $selectableCompanions = $this->getPossibleCompanions($bannerRow);
     // for some bizarre reason $bannerid is all the fields
     $bannerRow = $this->getExtendedBannerInfo($bannerRow);
     $isNewBanner = false;
     if (!isset($bannerRow['banner_vast_element_id'])) {
         $isNewBanner = true;
     }
     $header = $form->createElement('header', 'header_txt', "Create an Inline Video Ad (pre/mid/post-roll)");
     $header->setAttribute('icon', 'icon-banner-text.gif');
     $form->addElement($header);
     $form->addElement('hidden', 'ext_bannertype', $this->getComponentIdentifier());
     $this->addIntroductionInlineHelp($form);
     $this->addVastHardcodedDimensionsToForm($form, $bannerRow, VAST_INLINE_DIMENSIONS);
     $isVideoUploadSupported = false;
     if ($isVideoUploadSupported) {
         addUploadGroup($form, $row, array('uploadName' => 'uploadalt', 'radioName' => 'replacealtimage', 'imageName' => $altImageName, 'fileSize' => $altSize, 'fileName' => $row['alt_filename'], 'newLabel' => "select incomming video file", 'updateLabel' => "select replacement video file", 'handleSWF' => false));
     }
     $this->addVastParametersToForm($form, $bannerRow, $isNewBanner);
     $this->setElementIsRequired('vast_video_delivery', 'ext_bannertype', $this->getComponentIdentifier());
     $this->setElementIsRequired('vast_video_filename', 'ext_bannertype', $this->getComponentIdentifier());
     $this->setElementIsRequired('vast_video_type', 'ext_bannertype', $this->getComponentIdentifier());
     $this->setElementIsRequired('vast_video_duration', 'ext_bannertype', $this->getComponentIdentifier());
     $this->addThirdPartyImpressionTracking($form);
     $this->addVastCompanionsToForm($form, $selectableCompanions);
 }
 function getFieldLabel($fieldName)
 {
     $labels = array('url' => $GLOBALS['strURL']);
     if (isset($labels[$fieldName])) {
         return $labels[$fieldName];
     }
     return parent::getFieldLabel($fieldName);
 }