本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}