当前位置: 首页>>代码示例>>PHP>>正文


PHP Blog::delete方法代码示例

本文整理汇总了PHP中Blog::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Blog::delete方法的具体用法?PHP Blog::delete怎么用?PHP Blog::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Blog的用法示例。


在下文中一共展示了Blog::delete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: delete

 public function delete()
 {
     $Blog = new Blog($this->plural_resorce, $this->option, $this->db);
     $sql = $Blog->delete();
     var_dump($sql);
     mysqli_query($this->db, $sql) or die(mysqli_error($this->db));
     header('Location:../index');
     exit;
 }
开发者ID:hiroki0325,项目名称:geechscamp,代码行数:9,代码来源:blogs_contllorer.php

示例2: getGS

}

$f_action = Input::Get('f_action', 'string');

if (!camp_blog_permission_check($f_action)) {
    echo getGS('You do not have the right to perform this action.');
    exit;
}

switch ($f_action) {
    case 'blogs_delete':
        $f_blogs = Input::Get('f_blogs', 'array');

        foreach ($f_blogs as $blog_id) {
            $Blog = new Blog($blog_id);
            $Blog->delete();
        }
    break;

    case 'entries_delete':
        $f_entries = Input::Get('f_entries', 'array');

        foreach ($f_entries as $entry_id) {
            $BlogEntry = new BlogEntry($entry_id);
            $BlogEntry->delete();
        }
    break;


    case 'comments_delete':
        $f_comments = Input::Get('f_comments', 'array');
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:ajax_action.php

示例3: delete

 public function delete($id)
 {
     //モデルを呼び出す
     $blog = new Blog();
     $this->deleteOptions = $blog->delete($id);
     header('Location: /seed_blog/blogs/index');
 }
开发者ID:k-nish,项目名称:seed_blog,代码行数:7,代码来源:blogs_controller.php

示例4: delete

 public function delete($id)
 {
     $blog = new Blog();
     $blog->delete($id);
     // indexへ遷移
     header('Location: /seed_blog/blogs/index/');
 }
开发者ID:amico8,项目名称:seed_blog,代码行数:7,代码来源:blogs_controller.php

示例5: delete

 public function delete($id)
 {
     $blog = new Blog();
     $this->viewOptions = $blog->delete($id);
     // var_dump($this->viewOptions);
     // アクション名を設定する
     // $this->action ='edit';
     // indexへ遷移
     header('Location: /seed_blog/blogs/index/');
 }
开发者ID:huro3h,项目名称:seed_blog,代码行数:10,代码来源:blogs_controller.php

示例6: testDeleteInstanceOnNewModel

 /**
  * @expectedException SimpleAR\Exception
  */
 public function testDeleteInstanceOnNewModel()
 {
     // Cannot delete a new model instance.
     $blog = new Blog();
     $blog->delete();
 }
开发者ID:lucasnpinheiro,项目名称:SimpleAR,代码行数:9,代码来源:ModelTest.php


注:本文中的Blog::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。