本文整理汇总了PHP中gallery::toXML方法的典型用法代码示例。如果您正苦于以下问题:PHP gallery::toXML方法的具体用法?PHP gallery::toXML怎么用?PHP gallery::toXML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gallery
的用法示例。
在下文中一共展示了gallery::toXML方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: implode
$uid = $zoom->currUID;
if (empty($selections)) {
$selections = 1;
} else {
$selections = implode(',', $selections);
}
// replace space-character with 'air'...or nothing!
$keywords = ereg_replace(" ", "", $keywords);
$database->setQuery("INSERT INTO #__zoom (catname, catdescr, catdir, catpassword, catkeywords, " . "subcat_id, pos, hideMsg, shared, published, uid, catmembers)" . " VALUES " . "('" . $zoom->escapeString($name) . "', '" . $zoom->escapeString($descr) . "', '" . $zoom->escapeString($mkdir) . "', '" . $zoom->escapeString($pass) . "', '" . $zoom->escapeString($keywords) . "', '{$parent}', '{$pos}', '{$hidemsg}', " . "'{$shared}', '{$published}', '{$uid}', '" . $zoom->escapeString($selections) . "')");
if ($database->query()) {
echo $zoom->callbackResult(html_entity_decode(_ZOOM_ALERT_NEWGALLERY));
$database->setQuery("SELECT MAX(catid) AS catid FROM #__zoom");
$result = $database->query();
$row = mysql_fetch_object($result);
$gallery = new gallery($row->catid, true);
echo $gallery->toXML();
} else {
echo $zoom->callbackResult(html_entity_decode(_ZOOM_ALERT_NONEWGALLERY), true);
}
} else {
echo $zoom->callbackResult(html_entity_decode(_ZOOM_ALERT_NONEWGALLERY), true);
}
}
break;
case 'catsmgr_newdir':
//echo $zoom->callbackResult();
echo "<newdir>" . $zoom->newdir() . "</newdir>";
break;
case 'catsmgr_rename':
$catid = intval($zoom->getParam($_REQUEST, 'catid'));
if (!empty($catid)) {