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> '; /* @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); }
function __construct() { parent::__construct('obsdestinationlang', ''); }
function __construct() { parent::__construct('obsDocUpload', ''); }
/** * Class constructor */ function __construct() { parent::__construct('ta_setup_options', 'ta_options.php'); }
/** * Class constructor */ function __construct() { parent::__construct('obscreatenow', 'obs_options.html'); }
function __construct() { parent::__construct('obssourcelang', 'source_language.html'); }
function __construct() { parent::__construct('obscreatenow', 'button_obs_create.html'); }