本文整理汇总了PHP中Sample::user方法的典型用法代码示例。如果您正苦于以下问题:PHP Sample::user方法的具体用法?PHP Sample::user怎么用?PHP Sample::user使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sample
的用法示例。
在下文中一共展示了Sample::user方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIndex
public function getIndex()
{
$userdata = Sample::user(Session::get('user_id'));
if ($userdata && $userdata->status == "success") {
return View::make('admin.editview')->with('userdata', $userdata);
} else {
return View::make('admin.service');
}
}
示例2: getProfile
public static function getProfile()
{
$userdata = Sample::user(Session::get('user_id'));
if ($userdata && $userdata->status == "success") {
return View::make('subretailer.editview')->with('userdata', $userdata);
} else {
return View::make('subretailer.service');
}
}
示例3: getIndex
public function getIndex()
{
$userdata = Sample::user(Session::get('user_id'));
if ($userdata && $userdata->status == "success") {
return View::make('franchise.editview')->with('userdata', $userdata);
} else {
return Redirect::to('franchise/noservice');
}
}
示例4: getShow
public function getShow($id)
{
$userdata = Sample::user($id);
if ($userdata && $userdata->status == "success") {
$userproducts = Sample::category($userdata->userId);
$adminproducts = Sample::category(Session::get('user_name'));
$usercategory = $userproducts->categories;
$userproduct = $userproducts->products;
$admincategory = $adminproducts->categories;
$adminproduct = $adminproducts->products;
return View::make('superadmin.admin.editview')->with('userdata', $userdata)->with('usercategory', $usercategory)->with('userproduct', $userproduct)->with('admincategory', $admincategory)->with('adminproduct', $adminproduct);
} else {
return View::make('superadmin.service');
}
}
示例5: getShow
public function getShow($id)
{
$userdata = Sample::user($id);
if ($userdata && $userdata->status == "success") {
$userproducts = Sample::category($userdata->userId);
$adminproducts = Sample::category($userdata->parentId);
$usercategory = $userproducts->categories;
$userproduct = $userproducts->products;
$admincategory = $adminproducts->categories;
$adminproduct = $adminproducts->products;
return View::make('admin.subretailer.editview')->with('userdata', $userdata)->with('usercategory', $usercategory)->with('userproduct', $userproduct)->with('admincategory', $admincategory)->with('adminproduct', $adminproduct);
} else {
return Redirect::to('admin/noservice');
}
}