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


PHP Staff::get方法代码示例

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


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

示例1: AllStaff

 public function AllStaff()
 {
     $params = $this->getRequest()->params();
     $teamURL = $params['team'];
     $teamURL = strtolower(str_replace('_', ' ', $teamURL));
     $staff = Staff::get()->filter('Team.Title', $teamURL);
     return $staff;
 }
开发者ID:jakedaleweb,项目名称:AtomCodeChallenge,代码行数:8,代码来源:StaffHolderPage.php

示例2: Staff

 function list_drop()
 {
     $staff = new Staff();
     $staff->get();
     foreach ($staff as $row) {
         $data[''] = '[ Staffs ]';
         $data[$row->staff_id] = $row->staff_name;
     }
     return $data;
 }
开发者ID:anggadjava,项目名称:payroll,代码行数:10,代码来源:staff.php

示例3: index

 public function index()
 {
     $staff = new Staff();
     $data['staffs'] = $staff->get();
     $data['staff_count'] = $staff->count();
     $data['highchart_cabang'] = $this->highchart_cabang();
     $data['highchart_get_name_branch'] = $this->highchart_get_name_branch();
     $data['highchart_get_name_dept'] = $this->highchart_get_name_dept();
     $data['btn_new_staff'] = anchor('staffs/add', '<span class="icon-white icon-plus"></span>', array('class' => 'btn btn-primary bootstrap-tooltip', 'data-placement' => 'top', 'data-title' => 'Add new Employee'));
     $this->load->view('welcome_message', $data);
 }
开发者ID:anggadjava,项目名称:payroll,代码行数:11,代码来源:welcome.php

示例4: index

 public function index()
 {
     $staff = new Staff();
     $data['q'] = $this->input->get('q');
     $data['title'] = 'Payroll';
     $data['results'] = $data['q'] == '' ? '' : 'Search result for "' . $this->input->get('q') . '"';
     if ($data['q'] != '') {
         $rs = $staff->or_like('staff_name', '%' . $data['q'] . '%')->or_like('staff_cabang', '%' . $data['q'] . '%')->or_like('staff_departement', '%' . $data['q'] . '%')->or_like('staff_jabatan', '%' . $data['q'] . '%');
     }
     $data['search_list'] = $staff->get();
     $this->load->view('searches', $data);
 }
开发者ID:anggadjava,项目名称:payroll,代码行数:12,代码来源:searches.php

示例5: UncategorizedStaff

 public function UncategorizedStaff()
 {
     $uncategorizedstaffmembers = new ArrayList();
     $staffmembers = Staff::get();
     if ($staffmembers) {
         foreach ($staffmembers as $staff) {
             if ($staff->Category() == "Other") {
                 $uncategorizedstaffmembers->push($staff);
             }
         }
     }
     return $uncategorizedstaffmembers;
 }
开发者ID:andrewhoule,项目名称:silverstripe-staffpage,代码行数:13,代码来源:StaffPage.php

示例6: Staff

 function hut_reminders()
 {
     $staff = new Staff();
     $staff->get();
     $hut = array();
     $year = date('Y-');
     foreach ($staff as $row) {
         $month_day = date('m-d', strtotime($row->staff_birthdate));
         $staff_birthday = $year . $month_day;
         $hut[] = array('id' => floatval($row->staff_id), 'title' => $row->staff_name, 'start' => $staff_birthday, 'url' => site_url('staffs/show/' . $row->staff_id));
     }
     echo json_encode($hut);
 }
开发者ID:anggadjava,项目名称:payroll,代码行数:13,代码来源:staffs.php


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