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


PHP Ticket::all方法代碼示例

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


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

示例1: index

 public function index()
 {
     $title = "Управление заявками";
     //Lang::get('admin/blogs/title.blog_management');
     $requests = \Ticket::all();
     $email = \DbConfig::get("app.admin.email_to_send_requests");
     if (!$email) {
         $email = "";
     }
     return View::make('admin/requests/index', compact('title', 'requests', 'email'));
 }
開發者ID:Khelek,項目名稱:ipsol,代碼行數:11,代碼來源:RequestsController.php

示例2: filter

 function filter($condition)
 {
     switch ($condition) {
         case 'open':
             $options = array('conditions' => 'status != "closed" AND company_id = ' . $this->client->comapny_id);
             break;
         case 'closed':
             $options = array('conditions' => 'status = "closed" AND company_id = ' . $this->client->company_id);
             break;
     }
     $this->view_data['ticket'] = Ticket::all($options);
     $this->content_view = 'tickets/client_views/all';
 }
開發者ID:anteknik,項目名稱:tomanage,代碼行數:13,代碼來源:ctickets.php

示例3: filter

 function filter($condition)
 {
     switch ($condition) {
         case 'open':
             $options = array('conditions' => 'status = "open"');
             break;
         case 'closed':
             $options = array('conditions' => 'status = "closed"');
             break;
         case 'assigned':
             $options = array('conditions' => 'status != "closed" AND user_id = ' . $this->user->id);
             break;
     }
     $this->view_data['ticket'] = Ticket::all($options);
     $this->content_view = 'tickets/all';
 }
開發者ID:anteknik,項目名稱:tomanage,代碼行數:16,代碼來源:tickets.php

示例4: filter

 function filter($condition)
 {
     $this->view_data['queues'] = Queue::find('all', array('conditions' => array('inactive=?', '0')));
     switch ($condition) {
         case 'open':
             $options = array('conditions' => 'status = "open"');
             break;
         case 'closed':
             $options = array('conditions' => 'status = "closed"');
             break;
         case 'assigned':
             $options = array('conditions' => 'status != "closed" AND user_id = ' . $this->user->id);
             break;
     }
     $this->view_data['ticket'] = Ticket::all($options);
     $this->content_view = 'tickets/all';
 }
開發者ID:pratikbgit,項目名稱:freelancerKit,代碼行數:17,代碼來源:tickets.php

示例5: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $tickets = $this->ticket->all();
     return View::make('tickets.index', compact('tickets'));
 }
開發者ID:Atiragram,項目名稱:poit-labs,代碼行數:10,代碼來源:TicketsController.php

示例6: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return View::make('user.ticket_list', ['tickets' => Ticket::all()]);
 }
開發者ID:sammy8806,項目名稱:gsi_laravel,代碼行數:9,代碼來源:TicketController.php

示例7: _seed

 /**
  * Setup data
  *
  * @return null
  */
 private static function _seed()
 {
     $database = self::_database();
     User::all()->destroy();
     Bill::all()->destroy();
     Ticket::all()->destroy();
     Tocket::all()->destroy();
     Account::all()->destroy();
     $user = new User();
     $user->id = 1;
     $user->name = "Eustaquio Rangel";
     $user->email = "eustaquiorangel@gmail.com";
     $user->code = "12345";
     $user->user_level = 1;
     $user->save();
     $user = new User();
     $user->id = 2;
     $user->name = "Rangel, Eustaquio";
     $user->email = "taq@bluefish.com.br";
     $user->code = "54321";
     $user->user_level = 2;
     $user->save();
     for ($i = 1; $i <= 10; $i++) {
         $bill = new Bill();
         $bill->id = $i;
         $bill->user_id = 1;
         $bill->description = "Bill #{$i}";
         $bill->value = $i;
         $bill->save();
         $ticket = new Ticket();
         $ticket->user_id = 1;
         $ticket->description = "Just another ticket";
         $ticket->save();
     }
     $account = new Account();
     $account->user_id = 1;
     $account->account_number = "12345";
     $account->save();
     $account = new Account();
     $account->user_id = 2;
     $account->account_number = "54321";
     $account->save();
 }
開發者ID:taq,項目名稱:torm,代碼行數:48,代碼來源:modelTest.php


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