setCache($cache); // just add disable cache to your query to disable caching
}
$bridge->setDatas($_REQUEST);
// Data transformation
$format = Format::create($format);
$format
->setDatas($bridge->getDatas())
->setExtraInfos(array(
'name' => $bridge->getName(),
'uri' => $bridge->getURI(),
))
->display();
die;
}
break;
}
}
}
catch(HttpException $e){
header('HTTP/1.1 ' . $e->getCode() . ' ' . Http::getMessageForCode($e->getCode()));
header('Content-Type: text/plain');
die($e->getMessage());
}
catch(\Exception $e){
die($e->getMessage());
}
function getHelperButtonFormat($value, $name){
return '' . $name . ' ';
}
function getHelperButtonsFormat($formats){
$buttons = '';
foreach( $formats as $name => $infos )
{
if ( isset($infos['name']) )
{
$buttons .= getHelperButtonFormat($name, $infos['name']) . PHP_EOL;
}
}
return $buttons;
}
function displayBridgeCard($bridgeName, $formats, $isActive = true)
{
$bridgeElement = Bridge::create($bridgeName);
$bridgeElement->loadMetadatas();
$name = ''.$bridgeElement->name.' ';
$description = $bridgeElement->description;
$card = <<
{$name}
{$description}
CARD;
// If we don't have any parameter for the bridge, we print a generic form to load it.
if(count($bridgeElement->parameters) == 0) {
$card .= '' . PHP_EOL;
}
foreach($bridgeElement->parameters as $parameterName => $parameter)
{
$card .= '' . PHP_EOL;
$card .= ''.$parameterName.' ' . PHP_EOL;
$card .= ' ' . PHP_EOL;
}
$card .= ''.$bridgeElement->maintainer.' ';
$card .= '';
return $card;
}
$formats = Format::searchInformation();
?>
RSS-Bridge
RSS-Bridge
·Reconnecting the Web·
' . $inactiveBridges;
?>