當前位置: 首頁>>代碼示例>>PHP>>正文


PHP gallery::toXML方法代碼示例

本文整理匯總了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)) {
開發者ID:BGCX261,項目名稱:zoom-gallery-svn-to-git,代碼行數:31,代碼來源:ajaxcallback.php


注:本文中的gallery::toXML方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。