本文整理匯總了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');
}
}
示例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');
}
}
示例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');
}
}
示例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');
}
}
示例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');
}
}
示例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');
}
}
示例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());
}
}
}