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


PHP Sample::all方法代码示例

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


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

示例1: getIndex

 public function getIndex()
 {
     $admindata = Sample::all();
     $userdata = json_decode($admindata);
     if ($userdata) {
         $senddata = $userdata->subUsers;
     }
     return View::make('retailer.subretailer.manageview')->with('senddata', $senddata);
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:9,代码来源:RetailersubretailerController.php

示例2: getAdd

 public function getAdd()
 {
     $admindata = Sample::all();
     $userdata = json_decode($admindata);
     if ($userdata) {
         $senddata = $userdata->subUsers;
     }
     return View::make('superadmin.creditdebit.addview')->with('senddata', $senddata);
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:9,代码来源:SuperadmincreditdebitController.php

示例3: getAdd

 public function getAdd()
 {
     $admindata = Sample::all();
     $userdata = json_decode($admindata);
     if ($userdata && $userdata->status == "success") {
         $senddata = $userdata->subUsers;
         return View::make('admin.creditdebit.addview')->with('senddata', $senddata);
     } else {
         return Redirect::to('admin/noservice');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:11,代码来源:AdmincreditdebitController.php

示例4: getIndex

 public function getIndex()
 {
     $admindata = Sample::all();
     $userdata = json_decode($admindata);
     if ($userdata && ($userdata->status = "success")) {
         $senddata = $userdata->subUsers;
         return View::make('superadmin.admin.manageview')->with('senddata', $senddata);
     } else {
         return View::make('superadmin.service');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:11,代码来源:SuperadminadminController.php

示例5: getIndex

 public function getIndex()
 {
     $admindata = Sample::all();
     $userdata = json_decode($admindata);
     if ($userdata) {
         $senddata = $userdata->subUsers;
         return View::make('admin.franchise.manageview')->with('senddata', $senddata);
     } else {
         return Redirect::to('admin/noservice');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:11,代码来源:AdminfranchiseController.php

示例6: getAdd

 public function getAdd()
 {
     $data = Sample::all();
     $senddata = json_decode($data);
     if ($senddata) {
         $userdata = $senddata->subUsers;
     }
     $categorydata = Sample::category(Session::get('user_name'));
     if ($categorydata) {
         $category = $categorydata->categories;
         $products = $categorydata->products;
     }
     return View::make('superadmin.retailer.addview')->with('userdata', $userdata)->with('category', $category)->with('products', $products);
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:14,代码来源:SuperadminretailerController.php

示例7: getAdd

 public function getAdd()
 {
     $data = Sample::all();
     //print_r($data); exit;
     $senddata1 = json_decode($data);
     $senddata = $senddata1->subUsers;
     $categorydata = Sample::category(Session::get('user_name'));
     if ($categorydata) {
         $category = $categorydata->categories;
         $products = $categorydata->products;
     } else {
         $category = '';
         $products = '';
     }
     return View::make('franchise.subretailer.addview')->with('senddata', $senddata)->with('category', $category)->with('products', $products);
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:16,代码来源:FranchisesubretailerController.php

示例8: getAdd

 public function getAdd()
 {
     $data = Sample::all();
     //print_r($data); exit;
     $senddata1 = json_decode($data);
     if ($senddata1 && $senddata1->status == "success") {
         $senddata = $senddata1->subUsers;
         $categorydata = Sample::category(Session::get('user_name'));
         if ($categorydata) {
             $category = $categorydata->categories;
             $products = $categorydata->products;
         } else {
             $category = '';
             $products = '';
         }
         return View::make('superadmin.superdistributor.addview')->with('userdata', $senddata)->with('category', $category)->with('products', $products);
     } else {
         return Redirect::to('superadmin/noservice');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:20,代码来源:SuperadminsudisController.php

示例9: homepage

 public function homepage()
 {
     $samples = Sample::all();
     foreach ($samples as $sample) {
         $sample->filesize = $this->human_filesize($sample->filesize);
     }
     $this->layout->content = View::make('index')->with('files', $samples);
 }
开发者ID:wxdublin,项目名称:malwaRE,代码行数:8,代码来源:HomeController.php


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