本文整理匯總了PHP中subinventory::find_by_id方法的典型用法代碼示例。如果您正苦於以下問題:PHP subinventory::find_by_id方法的具體用法?PHP subinventory::find_by_id怎麽用?PHP subinventory::find_by_id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類subinventory
的用法示例。
在下文中一共展示了subinventory::find_by_id方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: empty
<?php
$association_level = empty($bc_label_auto_trigger->association_level) ? $association_level : $bc_label_auto_trigger->association_level;
switch ($association_level) {
case 'SITE':
echo $f->text_field('association_level_value', 'SITE', '', '', '', 1, 1);
break;
case 'BUSINESS':
echo $f->select_field_from_object('association_level_value', $org->findAll_business(), 'org_id', 'org', ${$class}->association_level_value, '', '', 1);
break;
case 'INVENTORY':
echo $f->select_field_from_object('association_level_value', $org->findAll_inventory(), 'org_id', 'org', ${$class}->association_level_value, '', '', 1);
break;
case 'FROM_SUBINV':
$org_id_sub = null;
if (!empty(${$class}->association_level_value)) {
$subinv_i = subinventory::find_by_id(${$class}->association_level_value);
$org_id_sub = $subinv_i->org_id;
}
echo $f->select_field_from_object('', $org->findAll_inventory(), 'org_id', 'org', $org_id_sub, '', 'org_id', 1);
echo '</td><td>';
echo $f->select_field_from_object('association_level_value', subinventory::find_all(), 'subinventory_id', array('subinventory', 'org_id'), ${$class}->association_level_value, '', 'subinventory_id', 1);
break;
case 'USER':
echo $f->select_field_from_object('association_level_value', user::find_all(), 'user_id', 'username', ${$class}->association_level_value, '', '', 1);
break;
}
?>
</td>
<td>
<?php
echo $f->select_field_from_object('bc_label_format_header_id', bc_label_format_header::find_all(), 'bc_label_format_header_id', 'format_name', ${$class}->bc_label_format_header_id, '', '', 1) . "</td>";