本文整理汇总了PHP中item::find_by_id方法的典型用法代码示例。如果您正苦于以下问题:PHP item::find_by_id方法的具体用法?PHP item::find_by_id怎么用?PHP item::find_by_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类item
的用法示例。
在下文中一共展示了item::find_by_id方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gettext
<th><?php
echo gettext('Usage Basis');
?>
</th>
<th><?php
echo gettext('Quantity');
?>
</th>
</tr>
</thead>
<tbody class="form_data_line_tbody2 am_wo_bom_values" >
<?php
$count = 0;
foreach ($am_wo_bom_object as $am_wo_bom) {
if (!empty($am_wo_bom->component_item_id_m)) {
$item = item::find_by_id($am_wo_bom->component_item_id_m);
${$class_fourth}->component_item_number = $item->item_number;
${$class_fourth}->component_description = $item->item_description;
${$class_fourth}->component_uom = $item->uom_id;
}
?>
<tr class="am_wo_bom<?php
echo $count;
?>
">
<td>
<ul class="inline_action">
<li class="add_row_img"><i class="fa fa-plus-circle"></i></li>
<li class="remove_row_img"><i class="fa fa-minus-circle"></i></li>
<li><input type="checkbox" name="line_id_cb" value="<?php
示例2: __
</th>
<th><?php
echo __('No Of Bucket');
?>
</th>
</tr>
</thead>
<tbody class="form_data_line_tbody">
<?php
$count = 0;
$fp_forecast_line_object_ai = new ArrayIterator($fp_forecast_line_object);
$fp_forecast_line_object_ai->seek($position);
while ($fp_forecast_line_object_ai->valid()) {
$fp_forecast_line = $fp_forecast_line_object_ai->current();
if (!empty($fp_forecast_line->item_id_m)) {
$item_i = item::find_by_id($fp_forecast_line->item_id_m);
$fp_forecast_line->item_number = $item_i->item_number;
$fp_forecast_line->item_description = $item_i->item_description;
$fp_forecast_line->uom_id = $item_i->uom_id;
} else {
$fp_forecast_line->item_number = $fp_forecast_line->item_description = $fp_forecast_line->uom_id = null;
}
?>
<tr class="fp_forecast_line<?php
echo $count;
?>
">
<td> <?php
echo ino_inline_action(${$class_second}->fp_forecast_line_id, array('fp_forecast_header_id' => ${$class}->fp_forecast_header_id));
?>
示例3: foreach
<th>Op. Sequence</th>
<th>Item Id</th>
<th>Item Number</th>
<th>Item Description</th>
<th>UOM</th>
<th>Usage Basis</th>
<th>Quantity</th>
</tr>
</thead>
<tbody class="form_data_line_tbody">
<?php
global $rowCount;
$rowCount = 0;
foreach ($bom_line_object as &$indented_bom_lines0) {
if (!empty($indented_bom_lines0->component_item_id_m)) {
$item = item::find_by_id($indented_bom_lines0->component_item_id_m);
$indented_bom_lines0->component_item_number = $item->item_number;
$indented_bom_lines0->component_description = $item->item_description;
$indented_bom_lines0->component_uom = $item->uom_id;
}
$level = 0;
?>
<tr class="bom_line<?php
echo $rowCount;
?>
">
<td> <?php
echo $rowCount;
?>
</td>
示例4: htmlentities
if (!empty($_GET["po_header_id"])) {
$po_header_id = htmlentities($_GET["po_header_id"]);
} elseif (!empty($_POST["po_header_id"][0])) {
$po_header_id = $_POST["po_header_id"][0];
} else {
$po_line = new po_line();
$po_line_object = array();
array_push($po_line_object, $po_line);
// $field_array = po_line::$field_array;
}
if (!empty($po_header_id)) {
$po_line_object = po_line::find_by_po_headerId($po_header_id);
//assign the item number to the object
foreach ($po_line_object as &$po_lines) {
if (!empty($po_lines->item_id_m)) {
$item = item::find_by_id($po_lines->item_id_m);
$po_lines->item_number = $item->item_number;
}
}
if (count($po_line_object) == 0) {
$po_line = new po_line();
$po_line_object = array();
array_push($po_line_object, $po_line);
}
}
?>
<?php
$primary_column = 'po_header_id';
$document_type = "Purchase Order";
示例5: gettext
<th><?php
echo gettext('UOM');
?>
</th>
<th><?php
echo gettext('Quantity');
?>
</th>
</tr>
</thead>
<tbody class="wip_wol_transaction_values form_data_line_tbody">
<?php
$count = 0;
foreach ($wip_wo_bom_object as $wip_wo_bom) {
if ($wip_wo_bom->component_item_id_m) {
$item_i = item::find_by_id($wip_wo_bom->component_item_id_m);
} else {
$item_i = new item();
}
?>
<tr class="wip_wol_transaction_line<?php
echo $count;
?>
">
<td><?php
echo ino_inline_action(${$class}->bom_sequence, array('transaction_type_id' => ${$class}->transaction_type_id, 'wip_wol_transaction_id' => ${$class}->wip_wol_transaction_id, 'org_id' => ${$class}->org_id));
?>
</td>
<td><?php
echo !empty($bom_sequence_stament) ? $bom_sequence_stament : form::text_field_wids('bom_sequence');
示例6: __
</th>
<th><?php
echo __('Quantity');
?>
</th>
</tr>
</thead>
<tbody class="form_data_line_tbody">
<?php
$count = 0;
$fp_mds_line_object_ai = new ArrayIterator($fp_mds_line_object);
$fp_mds_line_object_ai->seek($position);
while ($fp_mds_line_object_ai->valid()) {
$fp_mds_line = $fp_mds_line_object_ai->current();
if (!empty($fp_mds_line->item_id_m)) {
$item_i = item::find_by_id($fp_mds_line->item_id_m);
$fp_mds_line->item_number = $item_i->item_number;
} else {
$fp_mds_line->item_number = null;
}
?>
<tr class="fp_mds_line<?php
echo $count;
?>
">
<td>
<?php
echo ino_inline_action(${$class_second}->fp_mds_line_id, array('fp_mds_header_id' => ${$class}->fp_mds_header_id));
?>
</td>
示例7: sd_quote_header
echo '<link href="quote.css" media="all" rel="stylesheet" type="text/css" />';
$sd_quote_header = new sd_quote_header();
$class = $class_first = 'sd_quote_header';
${$class} = ${$class_first} =& $sd_quote_header;
$class_second = 'sd_quote_line';
${$class_second} =& $sd_quote_line;
if (!empty($_GET["sd_quote_header_id"])) {
$sd_quote_header_id = $_GET["sd_quote_header_id"];
$sd_quote_header->findBy_id($sd_quote_header_id);
}
if (!empty($sd_quote_header_id)) {
$sd_quote_line_object = sd_quote_line::find_by_sd_quote_headerId($sd_quote_header_id);
//assign the item number to the object
foreach ($sd_quote_line_object as &$sd_quote_lines) {
if (!empty($sd_quote_lines->item_id_m)) {
$item = item::find_by_id($sd_quote_lines->item_id_m);
$sd_quote_lines->item_number = $item->item_number;
}
}
if (count($sd_quote_line_object) == 0) {
$sd_quote_line = new sd_quote_line();
$sd_quote_line_object = array();
array_push($sd_quote_line_object, $sd_quote_line);
}
}
?>
<?php
$primary_column = 'sd_quote_header_id';
$document_type = "Sales Quote";
示例8: foreach
$class = $class_first = 'ar_transaction_header';
${$class} = ${$class_first} =& $ar_transaction_header;
$class_second = 'ar_transaction_line';
${$class_second} =& $ar_transaction_line;
$class_third = 'ar_transaction_detail';
${$class_third} =& $ar_transaction_detail;
if (!empty($_GET["ar_transaction_header_id"])) {
$ar_transaction_header_id = $_GET["ar_transaction_header_id"];
$ar_transaction_header->findBy_id($ar_transaction_header_id);
}
if (!empty($ar_transaction_header_id)) {
$ar_transaction_line_object = ar_transaction_line::find_by_parent_id($ar_transaction_header_id);
//assign the item number to the object
foreach ($ar_transaction_line_object as &$ar_transaction_lines) {
if (!empty($ar_transaction_lines->item_id_m)) {
$item = item::find_by_id($ar_transaction_lines->item_id_m);
$ar_transaction_lines->item_number = $item->item_number;
}
}
if (count($ar_transaction_line_object) == 0) {
$ar_transaction_line = new ar_transaction_line();
$ar_transaction_line_object = array();
array_push($ar_transaction_line_object, $ar_transaction_line);
}
}
?>
<?php
$primary_column = 'ar_transaction_header_id';
$document_type = 'Invoice';