當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseController::httpContent方法代碼示例

本文整理匯總了PHP中BaseController::httpContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::httpContent方法的具體用法?PHP BaseController::httpContent怎麽用?PHP BaseController::httpContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BaseController的用法示例。


在下文中一共展示了BaseController::httpContent方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: show

 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     if ($this->group_check->show($id)) {
         return BaseController::httpNotFound();
     } else {
         return BaseController::httpContent($this->group_gestion->show($id), 'group');
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:14,代碼來源:GroupController.php

示例2: dislikes

 public function dislikes($id)
 {
     if ($this->vote_check->missingPost($id)) {
         return BaseController::httpNotFound();
     } else {
         return BaseController::httpContent($this->vote_gestion->dislikes($id), 'dislikes');
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:8,代碼來源:VoteController.php

示例3: waiting

 public function waiting($id)
 {
     if ($this->list_validation->fails()) {
         return BaseController::httpError($this->list_validation);
     } elseif ($this->friend_check->noWaiting($id)) {
         return BaseController::httpNotFound();
     } else {
         return BaseController::httpContent($this->friend_gestion->waiting($id), 'waiting_friends');
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:10,代碼來源:FriendController.php

示例4: followers

 public function followers($id)
 {
     if ($this->list_validation->fails()) {
         return BaseController::httpError($this->list_validation);
     }
     if ($this->follow_check->noFollowers($id)) {
         return BaseController::httpNotfound();
     } else {
         return BaseController::httpContent($this->follow_gestion->followers($id), 'followers');
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:11,代碼來源:FollowController.php

示例5: show

 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     if ($this->comment_check->missing($id)) {
         return BaseController::httpNotFound();
     } else {
         return BaseController::httpContent($this->comment_gestion->show($id), 'comment');
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:14,代碼來源:CommentController.php

示例6: voteFeed

 public function voteFeed()
 {
     if ($this->list_validation->fails()) {
         return BaseController::httpError($this->list_validation);
     } else {
         return BaseController::httpContent($this->post_gestion->voteFeed(), 'vote_feed');
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:8,代碼來源:PostController.php

示例7: login

 /**
  * Check if the user exist and has the right password.
  *
  * @return Response
  */
 public function login()
 {
     if ($this->login_validation->fails()) {
         return BaseController::httpError($this->login_validation);
     } else {
         if ($this->user_check->badLogin()) {
             return BaseController::httpNotFound();
         } else {
             return BaseController::httpContent($this->user_gestion->login());
         }
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:17,代碼來源:UserController.php


注:本文中的BaseController::httpContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。