Example #1
0
 function __construct()
 {
     parent::__construct('obsdocupload', 'obs_import.php');
     // the user must be logged in to upload a file
     $userInfo = $GLOBALS['USERINFO'];
     if (empty($userInfo) || empty($userInfo['name'])) {
         $this->templateFileName = 'login_required.html';
     }
 }
 protected function getTextToRender($match)
 {
     $html = '<label for="obsaudioupload-selectLanguageCode">@selectLanguage@</label>&nbsp;';
     /* @var $translation helper_plugin_translation */
     $translation = plugin_load('helper', 'translation');
     $html .= $translation->renderAutoCompleteTextBox('obsaudioupload-selectLanguageCode', 'obsaudioupload-selectLanguageCode', 'width: 250px;');
     // Set the label text.
     // If the "special" tag was found, use the default text.
     if (preg_match('/' . str_replace('/', '\\/', $this->specialMatch) . '/', $match)) {
         $html = $this->translateHtml($html);
     }
     // If you are here, the "match" was the un-matched segment between the entry and exit tags,
     // which should be the desired label text.
     $html = str_replace('@destinationLabel@', $match, $html);
     $returnVal = parent::getTextToRender($match);
     return str_replace('<!-- insert language selector here -->', $html, $returnVal);
 }
Example #3
0
 function __construct()
 {
     parent::__construct('obsdestinationlang', '');
 }
Example #4
0
 function __construct()
 {
     parent::__construct('obsDocUpload', '');
 }
 /**
  * Class constructor
  */
 function __construct()
 {
     parent::__construct('ta_setup_options', 'ta_options.php');
 }
Example #6
0
 /**
  * Class constructor
  */
 function __construct()
 {
     parent::__construct('obscreatenow', 'obs_options.html');
 }
Example #7
0
 function __construct()
 {
     parent::__construct('obssourcelang', 'source_language.html');
 }
Example #8
0
 function __construct()
 {
     parent::__construct('obscreatenow', 'button_obs_create.html');
 }