$text";
return($html);
}
/**
*
* get select from array
*/
public static function getHTMLSelect($arr,$default="",$htmlParams="",$assoc = false, $addData = null, $addDataText = null){
$html = "";
return($html);
}
/**
* get row of addons table
*/
public static function getTableAddonsRow($addonID, $title){
$editLink = HelperUC::getViewUrl_EditAddon($addonID);
$htmlTitle = htmlspecialchars($title);
$html = "
\n";
$html.= "| {$title} | \n";
$html.= " \n";
$html.= " ". __("Edit",ADDONLIBRARY_TEXTDOMAIN) . "\n";
$html.= " ".__("Delete",ADDONLIBRARY_TEXTDOMAIN)."";
$html.= " " . __("Deleting", ADDONLIBRARY_TEXTDOMAIN) . "";
$html.= " " . __("Duplicate",ADDONLIBRARY_TEXTDOMAIN)."\n";
$html.= " " . __("Duplicating", ADDONLIBRARY_TEXTDOMAIN) . "";
$html.= " " . __("Save To Library",ADDONLIBRARY_TEXTDOMAIN)."\n";
$html.= " " . __("Saving to library", ADDONLIBRARY_TEXTDOMAIN) . "";
$html.= " | \n";
$html.= "
\n";
return($html);
}
/**
* put dialog actions
*/
public static function putDialogActions($prefix, $buttonTitle, $loaderTitle, $successTitle){
?>
'.self::BR;
$html .= self::TAB2.''.self::BR;
$html .= self::TAB2.''.self::BR;
$html .= self::TAB2.''.self::BR;
$html .= self::TAB2.''.self::BR;
return($html);
}
/**
* put global framework
*/
public static function putGlobalsHtmlOutput(){
if(self::$isGlobalJSPut == true)
return(false);
$jsOutput = self::getGlobalJsOutput();
?>
* .
getArrPlugins();
if(empty($arrPlugins))
return(false);
foreach($arrPlugins as $plugin){
$name = UniteFunctionsUC::getVal($plugin, "name");
$title = UniteFunctionsUC::getVal($plugin, "title");
$version = UniteFunctionsUC::getVal($plugin, "version");
$silentMode = UniteFunctionsUC::getVal($plugin, "silent_mode");
$silentMode = UniteFunctionsUC::strToBool($silentMode);
if($silentMode == true)
continue;
switch($name){
case "create_addons":
$title = "Create addons plugin {$version}";
break;
default:
$title = "$title {$version}";
break;
}
echo ", ";
echo $title;
}
}
/**
* output exception
*/
public static function outputException(Exception $e, $prefix=""){
if(empty($prefix))
$prefix = HelperUC::getText("addon_library")." Error: ";
$message = $prefix.$e->getMessage();
$trace = $e->getTraceAsString();
dmp($message);
if(GlobalsUC::SHOW_TRACE == true)
dmp($trace);
}
/**
* get error message html
*/
public static function getErrorMessageHtml($message, $trace = ""){
$html = '';
$html .= '
';
$html .= $message;
if(!empty($trace)){
$html .= '
';
$html .= "
{$trace}";
$html .= "
";
}
$html .= '
';
return($html);
}
/**
* output exception in a box
*/
public static function outputExceptionBox($e, $prefix=""){
$message = $e->getMessage();
if(!empty($prefix))
$message = $prefix.": ".$message;
$trace = "";
$showTrace = GlobalsUC::SHOW_TRACE_FRONT;
if(UniteProviderFunctionsUC::isAdmin() == true)
$showTrace = GlobalsUC::SHOW_TRACE;
if($showTrace)
$trace = $e->getTraceAsString();
$html = self::getErrorMessageHtml($message, $trace);
echo $html;
}
/**
* get hidden input field
*/
public static function getHiddenInputField($name, $value){
$value = htmlspecialchars($value);
$html = '';
return($html);
}
/**
* put settings html from filepath
*/
public static function putHtmlSettings($filename, $formID, $arrValues = array()){
$filepathSettings = GlobalsUC::$pathSettings."{$filename}.xml";
UniteFunctionsUC::validateFilepath($filepathSettings, "settings file - {$filename}.xml");
$settings = new UniteSettingsAdvancedUC();
$settings->loadXMLFile($filepathSettings);
if(!empty($arrValues))
$settings->setStoredValues($arrValues);
$output = new UniteSettingsOutputWideUC();
$output->init($settings);
$output->draw($formID);
}
/**
* get settings html
*/
public static function getHtmlSettings($filename, $formID, $arrValues = array()){
ob_start();
$html = self::putHtmlSettings($filename, $formID, $arrValues);
$html = ob_get_contents();
ob_clean();
ob_end_clean();
return($html);
}
} //end class