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


PHP Account::destroy方法代码示例

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


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

示例1: unsubscribe

 public function unsubscribe()
 {
     $user = Auth::user();
     if (!Hash::check(Input::get("currentPassword"), $user->password)) {
         return Response::json(array("success" => false, "info" => "Contraseña actual incorrecta."));
     }
     $id = $user->id;
     Auth::logout();
     Account::destroy($id);
     return Response::json(array("success" => true, "to" => url("http://www.ub.edu/medicamentoseninsuficienciarenal/")));
 }
开发者ID:polo070770,项目名称:TFG,代码行数:11,代码来源:ProfileController.php

示例2: destroy

 /**
  * Remove the specified account from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $account = Account::findOrFail($id);
     Account::destroy($id);
     Audit::logaudit('Accounts', 'delete', 'deleted:' . $account->name . ' ' . $account->code);
     return Redirect::route('accounts.index');
 }
开发者ID:kenkode,项目名称:xaraerp,代码行数:13,代码来源:AccountsController.php

示例3: testDelete

 public function testDelete()
 {
     pg_query("DELETE FROM account where user_name='deleteme'");
     $account = Account::create((object) array("userName" => "deleteme", "password" => "deleteme", "firstName" => "Jacob", "lastName" => "Andresen"));
     Account::destroy($account->id);
 }
开发者ID:jacobandresen,项目名称:now,代码行数:6,代码来源:AccountTest.php

示例4: destroy

 /**
  * Remove the specified account from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Account::destroy($id);
     return Redirect::route('accounts.index');
 }
开发者ID:RedTechs,项目名称:sfproject,代码行数:11,代码来源:AccountsController.php

示例5: process_request

 protected final function process_request()
 {
     //	Process
     //
     if ($this->request_noun === REQUEST_NOUN_USERS) {
         if ($this->request_verb === 'show') {
             //	Show
             //
             if (count($this->inputter->additional_uri_arguments) === 1 && isset($this->inputter->additional_uri_arguments[0]) && $this->http_method === HTTP_METHOD_GET) {
                 Users::show($this->inputter, $this->outputter);
             } else {
                 $this->invalid_process_additional_argument(count($this->inputter->additional_uri_arguments) - 1);
             }
         } else {
             if ($this->request_verb === 'search' && $this->http_method === HTTP_METHOD_GET) {
                 //	Search
                 //
                 Users::search($this->inputter, $this->outputter);
             } else {
                 if ($this->request_verb === 'lookup' && $this->http_method === HTTP_METHOD_GET) {
                     //	Lookup
                     //
                     Users::lookup($this->inputter, $this->outputter);
                 } else {
                     $this->invalid_process_verb();
                 }
             }
         }
     } else {
         if ($this->request_noun === REQUEST_NOUN_FRIENDS) {
             if ($this->request_verb === 'list' && $this->http_method === HTTP_METHOD_GET) {
                 //	List
                 //
                 Friends::_list($this->inputter, $this->outputter);
             } else {
                 if ($this->request_verb === 'ids' && $this->http_method === HTTP_METHOD_GET) {
                     //	User IDs
                     //
                     Friends::ids($this->inputter, $this->outputter);
                 } else {
                     $this->invalid_process_verb();
                 }
             }
         } else {
             if ($this->request_noun === REQUEST_NOUN_FOLLOWERS) {
                 if ($this->request_verb === 'list' && $this->http_method === HTTP_METHOD_GET) {
                     //	List
                     //
                     Followers::_list($this->inputter, $this->outputter);
                 } else {
                     if ($this->request_verb === 'ids' && $this->http_method === HTTP_METHOD_GET) {
                         //	User IDs
                         //
                         Followers::ids($this->inputter, $this->outputter);
                     } else {
                         $this->invalid_process_verb();
                     }
                 }
             } else {
                 if ($this->request_noun === REQUEST_NOUN_IN_PRODUCT_PROMOTIONS) {
                     if ($this->request_verb === 'show') {
                         //	Show
                         //
                         if (count($this->inputter->additional_uri_arguments) === 1 && isset($this->inputter->additional_uri_arguments[0]) && $this->http_method === HTTP_METHOD_GET) {
                             //	In Product Promotion ID
                             //
                             InProductPromotions::show($this->inputter, $this->outputter);
                         } else {
                             $this->invalid_process_additional_argument(count($this->inputter->additional_uri_arguments) - 1);
                         }
                     } else {
                         if ($this->request_verb === 'create' && $this->http_method === HTTP_METHOD_POST) {
                             //	Create
                             //
                             InProductPromotions::create($this->inputter, $this->outputter);
                         } else {
                             if ($this->request_verb === 'update' && $this->http_method === HTTP_METHOD_POST) {
                                 //	Update
                                 //
                                 InProductPromotions::update($this->inputter, $this->outputter);
                             } else {
                                 if ($this->request_verb === 'destroy') {
                                     //	Destroy
                                     //
                                     if (count($this->inputter->additional_uri_arguments) === 1 && isset($this->inputter->additional_uri_arguments[0]) && $this->http_method === HTTP_METHOD_DELETE) {
                                         //	In Product Promotion ID
                                         //
                                         InProductPromotions::destroy($this->inputter, $this->outputter);
                                     } else {
                                         $this->invalid_process_additional_argument(count($this->inputter->additional_uri_arguments) - 1);
                                     }
                                 } else {
                                     $this->invalid_process_verb();
                                 }
                             }
                         }
                     }
                 } else {
                     if ($this->request_noun === REQUEST_NOUN_INVITATIONS) {
                         if ($this->request_verb === 'show') {
//.........这里部分代码省略.........
开发者ID:adamcarter93,项目名称:university-final-year-project-rest-api,代码行数:101,代码来源:EventsRESTController.php


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