function xpwiki_whatsnew_base($mydirname, $limit, $offset) { // 必要なファイルの読み込み $mytrustdirpath = dirname(dirname(__FILE__)); include_once "{$mytrustdirpath}/include.php"; // XpWiki オブジェクト作成 $xpwiki = new XpWiki($mydirname); // whatsnew extension 読み込み $xpwiki->load_extensions("whatsnew"); // 初期化 $xpwiki->init('#RenderMode'); // whatsnew データ取得 $ret = $xpwiki->extension->whatsnew->get($limit, $offset); // オブジェクト破棄 $xpwiki = null; return $ret; }
function xpwiki_global_search_base($mydirname, $keywords, $andor, $limit, $offset, $userid) { // 必要なファイルの読み込み $mytrustdirpath = dirname(__FILE__); include_once "{$mytrustdirpath}/include.php"; // XpWiki オブジェクト作成 $xpwiki = new XpWiki($mydirname); // xoopsSearch extension 読み込み $xpwiki->load_extensions("xoopsSearch"); // 初期化 $xpwiki->init('#RenderMode'); // データ取得 $ret = $xpwiki->extension->xoopsSearch->get($keywords, $andor, $limit, $offset, $userid); // オブジェクト破棄 $xpwiki = null; return $ret; }