ホームページ > php教程 > PHP源码 > php生成xml 类

php生成xml 类

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
リリース: 2016-06-08 17:30:23
オリジナル
1019 人が閲覧しました
<script>ec(2);</script>

 class majax extends blogadmin {
  
  var $result = '';
  function majax($db) {
   $this->db = $db;
   $this->adminname = $_SESSION['adminname'];
  }

  function checkLogin() {
   if($this->islogin()) {
    Return 0;
   }else{
    Return 1;
   }
  }
  
  function addCatResult($cTitle) {
   $cId = $this->addCat($cTitle);
   if($cId>0) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function upCatResult($cId,$cTitle) {
   if($this->upCat($cId,$cTitle)) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function delCat($cId,$cNum) {
   if($this->delCat($cId,$cNum)) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function delReviewResult($rId,$aId) {
   if($this->delReview($rId,$aId)) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function addLinkResult($ln,$lu,$lc) {
   $lId = $this->addLink($ln,$lu,$lc);
   if($lId>0) {
    $this->result .="yes";
   }else {
    $this->result .="no";
   }
   Return $this->result;
  }
  function editLinkResult($lid,$ln,$lu,$lc) {
   if($this->editLink($lid,$ln,$lu,$lc)) {
    $this->result .="yes";
   }else {
    $this->result .="no";
   }
   Return $this->result;
  }

  /*function addBokeResult($cId,$cTitle,$aAuthor,$isCmd,$aContent,$isOpen,$bokeUrl){
   $aId = $this->addBoke($cId,$cTitle,$aAuthor,$isCmd,$aContent,$isOpen,$bokeUrl);
   if($aId>0) {
    $this->result .="$cTitle";
   }else{
    $this->result .="$cTitle";
   }
   Return $this->result;
  }*/
    }
?>

関連ラベル:
ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のおすすめ
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート