pages.select Test Start

setCredentials("USERNAME","API KEY"); $Client->setDebug($newdebuglevel); $Client->setSSLVerifyPeer(false); $Client->setSSLVerifyHost(false); $Client->return_type = "phpvals"; //forces return of page.get_one as php values $SiteName = "SITENAME"; ////////////test code ////////////code doesn't include error checking $pageobj = new WikidotPage($SiteName, $Client); $returnarray = array(); echo "

pages.select



"; //uncomment only the values needed, extra values or empty values cause errors $criteria = array(); $criteria['pagetype'] = "*"; //"*", "normal", "hidden" $categories = array("CATEGORY1", "CATEGORY2"); $criteria['categories'] = $categories; // $ytags = array(""); //any "-", "=", "==", list "tag" OR, "+tag" AND, "-tag" AND NOT // $criteria['tags_any'] = $ytags; // $atags = array(""); //all // $criteria['tags_all'] = $atags; // $ntags = array("_hide", "_hidden"); //none // $criteria['tags_none'] = $ntags; // $criteria['parent'] = ""; //"-", "=", "-=", ".", "parentname" // $criteria['created_at'] = ""; // $criteria['created_by'] = ""; // $criteria['rating'] = ""; //"n", "=", ">", "<", "<=", ">=", "<>" $criteria['order'] = "title"; // $criteria['link_to'] = ""; // $criteria['offset'] = ""; //"n" // $criteria['range'] = ""; //".", "before", "after", "others" // $criteria['datafield'] = array("fieldname", "fieldvalue"); $pageobj->php_pages_select($criteria, $returnarray); foreach($returnarray as $page){ echo "Site: ".$pageobj->getSite()."=> ".$page."
";} ?>