本文整理汇总了PHP中block::find_all方法的典型用法代码示例。如果您正苦于以下问题:PHP block::find_all方法的具体用法?PHP block::find_all怎么用?PHP block::find_all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block
的用法示例。
在下文中一共展示了block::find_all方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gettext
</th>
<th><?php
echo gettext('Priority');
?>
</th>
</tr>
</thead>
<tbody class="form_data_line_tbody user_dashboard_config_values" >
<?php
$count = 0;
foreach ($user_dashboard_config_object as $user_dashboard_config) {
$report_a = [];
if (!empty($user_dashboard_config->report_type)) {
switch ($user_dashboard_config->report_type) {
case 'block':
$block_i = block::find_all();
foreach ($block_i as $block_data) {
$block_id = $block_data->block_id;
$report_a[$block_id] = $block_data->title;
}
break;
case 'view':
$view_i = view::find_all();
foreach ($view_i as $view_data) {
$view_id = $view_data->view_id;
$report_a[$view_id] = $view_data->view_name;
}
break;
case 'extn_report':
$view_i = extn_report::find_all();
foreach ($view_i as $view_data) {
示例2:
?>
</li>
<li><?php
$f->l_select_field_from_object('category_type', category::category_types(), 'option_line_code', 'option_line_value', ${$class}->category_type, 'category_type');
?>
</li>
<li><?php
$f->l_text_field_d('description');
?>
</li>
<li><?php
$f->l_text_field_d('priority');
?>
</li>
<li><?php
$f->l_select_field_from_object('content_block_id', block::find_all(), 'block_id', 'name', ${$class}->content_block_id, 'content_block_id');
?>
</li>
<li><?php
$f->l_select_field_from_object('filter_catalog_id', sys_catalog_header::find_all(), 'sys_catalog_header_id', 'catalog', ${$class}->filter_catalog_id, 'filter_catalog_id');
?>
</li>
</ul>
</div>
<div id="tabsHeader-2" class="tabContent">
<div> <?php
echo extn_image::ino_images($class, ${$class}->category_id);
?>
</div>
</div>
<div id="tabsHeader-3" class="tabContent">