Esempio n. 1
0
 function do_editFeed()
 {
     $iFeedId = KTUtil::arrayGet($_REQUEST, 'feed_id');
     $add_fields = array();
     $add_fields[] = new KTStringWidget(_kt('Title'), _kt('The title of the RSS feed'), 'title', KTrss::getExternalFeedTitle($iFeedId), $this->oPage, true, null, null);
     $add_fields[] = new KTStringWidget(_kt('URL'), _kt('The url of the RSS feed'), 'url', KTrss::getExternalFeedUrl($iFeedId), $this->oPage, false, null, null);
     $oTemplating =& KTTemplating::getSingleton();
     $oTemplate = $oTemplating->loadTemplate("RSSPlugin/editfeed");
     $aTemplateData = array("context" => &$this, "add_fields" => $add_fields, "feed_id" => $iFeedId);
     return $oTemplate->render($aTemplateData);
 }