本文整理汇总了PHP中PilotData::GetFieldData方法的典型用法代码示例。如果您正苦于以下问题:PHP PilotData::GetFieldData方法的具体用法?PHP PilotData::GetFieldData怎么用?PHP PilotData::GetFieldData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PilotData
的用法示例。
在下文中一共展示了PilotData::GetFieldData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ViewPilotDetails
protected function ViewPilotDetails()
{
//This is for the main tab
$this->set('pilotinfo', PilotData::GetPilotData($this->get->pilotid));
$this->set('customfields', PilotData::GetFieldData($this->get->pilotid, true));
$this->set('allawards', AwardsData::GetPilotAwards($this->get->pilotid));
$this->set('pireps', PIREPData::GetAllReportsForPilot($this->get->pilotid));
$this->set('countries', Countries::getAllCountries());
$this->SetGroupsData($this->get->pilotid);
// For the PIREP list
$this->set('pending', false);
$this->set('load', 'pilotpireps');
$this->render('pilots_detailtabs.tpl');
}
示例2: editprofile
public function editprofile()
{
if (!Auth::LoggedIn()) {
$this->set('message', 'You must be logged in to access this feature!');
$this->render('core_error.tpl');
return;
}
$this->set('userinfo', Auth::$userinfo);
$this->set('customfields', PilotData::GetFieldData(Auth::$pilotid, true));
$this->set('bgimages', PilotData::GetBackgroundImages());
$this->set('countries', Countries::getAllCountries());
$this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid));
$this->render('profile_edit.tpl');
}
示例3: ViewPilotDetails
/**
* PilotAdmin::ViewPilotDetails()
*
* @return
*/
protected function ViewPilotDetails()
{
//This is for the main tab
if (PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PILOTS) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_GROUPS) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_AWARDS) || PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_PIREPS)) {
$this->set('pilotinfo', PilotData::GetPilotData($this->get->pilotid));
$this->set('customfields', PilotData::GetFieldData($this->get->pilotid, true));
$this->set('allawards', AwardsData::GetPilotAwards($this->get->pilotid));
$this->set('pireps', PIREPData::GetAllReportsForPilot($this->get->pilotid));
$this->set('countries', Countries::getAllCountries());
$this->SetGroupsData($this->get->pilotid);
// For the PIREP list
$this->set('pending', false);
$this->set('load', 'pilotpireps');
$this->render('pilots_detailtabs.php');
} else {
Debug::showCritical('Unauthorized access - Invalid Permissions.');
die;
}
}