コード例 #1
0
ファイル: class.wikistore.php プロジェクト: rhertzog/lcs
 /**
  * Load a Wiki
  * @param int wikiId ID of the Wiki
  * @return Wiki the loaded Wiki
  */
 public function loadWiki($wikiId)
 {
     $wiki = new Wiki($this->con, $this->config);
     $wiki->load($wikiId);
     if ($wiki->hasError()) {
         $this->setError($wiki->error, $wiki->errno);
     }
     return $wiki;
 }
コード例 #2
0
ファイル: class.wikistore.php プロジェクト: nikosv/openeclass
    /**
     * Load a Wiki
     * @param int wikiId ID of the Wiki
     * @return Wiki the loaded Wiki
     */
    function loadWiki($wikiId) {
        $wiki = new Wiki();
        
        if ($wiki->hasError()) {
        	$this->setError($wiki->error);
        }
        
        $wiki->load($wikiId);

        return $wiki;
    }