本文整理汇总了PHP中SibdietHelper::BodyFat方法的典型用法代码示例。如果您正苦于以下问题:PHP SibdietHelper::BodyFat方法的具体用法?PHP SibdietHelper::BodyFat怎么用?PHP SibdietHelper::BodyFat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SibdietHelper
的用法示例。
在下文中一共展示了SibdietHelper::BodyFat方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: JRegistry
$registry->loadString($item->body);
$item->body = $registry->toArray();
$item->weight = $item->body['weight'];
$item->stature = $item->body['stature'];
$item->wrist = $item->body['wrist'];
// Convert the body field to an array.
$registry = new JRegistry();
$registry->loadString($item->first_body);
$item->first_body = $registry->toArray();
$item->first_weight = $item->first_body['weight'];
$item->first_stature = $item->first_body['stature'];
$item->age = SibdietHelper::age($item->birthday, $item->created);
$age = $item->age->y . '.' . $item->age->m;
$item->bmi = SibdietHelper::bmi($item->weight, $item->stature);
$overweight_amount = $item->weight - $item->ideal_weight;
$item->body_fat = SibdietHelper::BodyFat($item->age, $item->gender, $item->bmi);
$body_fat_text = $item->body_fat['fat'] . ' (' . JText::_('COM_SIBDIET_BODY_FAT_STATUS_' . $item->body_fat['status']) . ')';
$item->obesity_degree = SibdietHelper::ObesityDegree($item->gender, $item->weight, $item->stature);
$foods_program = SibdietHelper::FoodsProgram($item->breakfasts, $item->lunchs, $item->dinners, $item->morning_snack_id, $item->evening_snack_id);
$item->profiles_id = $item->profiles_id + 200000;
$item->body_size = SibdietHelper::BodySizeGrouping($item->age, $item->gender, $item->stature, $item->wrist);
$dietSupplementNotice = JText::sprintf('COM_SIBDIET_PRINT_SUPPLEMENT_NOTICE', $item->period);
if ($age <= 17) {
$item->bmi = $body_fat_text = $overweight_amount_text = JText::_('COM_SIBDIET_BODY_SIZE_GROUPING_' . $item->body_size);
}
?>
<div id="diet<?php
echo $i;
?>
" class="diet-print">
<div class="page page1">