当前位置: 首页>>代码示例>>PHP>>正文


PHP search::setProperty方法代码示例

本文整理汇总了PHP中search::setProperty方法的典型用法代码示例。如果您正苦于以下问题:PHP search::setProperty方法的具体用法?PHP search::setProperty怎么用?PHP search::setProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在search的用法示例。


在下文中一共展示了search::setProperty方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: search

     $multi_selct_input_fields = null;
     $hidden_field_names = null;
     $multi_select_select_fields = null;
 }
 /* Start of Search */
 $search = new search();
 if (!empty($_GET['search_order_by'][0])) {
     $s->setProperty('_search_order_by', $_GET['search_order_by'][0]);
 }
 if (!empty($_GET['search_asc_desc'][0])) {
     $s->setProperty('_search_asc_desc', $_GET['search_asc_desc'][0]);
 }
 if (!empty($_GET['per_page'][0])) {
     $s->setProperty('_per_page', $_GET['per_page'][0]);
 }
 $search->setProperty('_searching_class', $class);
 $search->setProperty('_form_post_link', 'multi_select');
 $search->setProperty('_initial_search_array', ${$class}->initial_search);
 $search->setProperty('_hidden_fields', $hidden_field_a);
 if (is_array($mode)) {
     $search->setProperty('_search_mode', $mode[0]);
 } else {
     $search->setProperty('_search_mode', $mode);
 }
 if (property_exists(${$class}, 'search_functions')) {
     $s->setProperty('_search_functions', ${$class}->search_functions);
 }
 $search_form = $search->search_form(${$class});
 $table_name = empty($table_name) ? $class::$table_name : $table_name;
 $primary_column = property_exists(${$class}, 'primary_column') ? $class::$primary_column : $table_name . '_id';
 $pageno = !empty($_GET['pageno']) ? (int) $_GET['pageno'] : 1;
开发者ID:prawee,项目名称:inoERP,代码行数:31,代码来源:json_multi_select.php

示例2: foreach

 }
 //hidden fields used for mandatory fields
 if (method_exists(${$class}, 'select_hidden_fields')) {
     $hidden_field_names = $action_class_i->multi_select_hidden_fields();
     if (!empty($_GET)) {
         foreach ($hidden_field_names as $hiden_field_name) {
             if (!empty($_GET[$hiden_field_name])) {
                 $hidden_field_a[$hiden_field_name] = is_array($_GET[$hiden_field_name]) ? $_GET[$hiden_field_name][0] : $_GET[$hiden_field_name];
             } else {
                 $hidden_field_a[$hiden_field_name] = null;
             }
         }
     }
 }
 $search = new search();
 $search->setProperty('_search_order_by', filter_input(INPUT_GET, 'search_order_by'));
 $search->setProperty('_search_asc_desc', filter_input(INPUT_GET, 'search_asc_desc'));
 // $search->setProperty('_per_page', filter_input(INPUT_GET, 'per_page'));
 if (!empty($_GET['per_page'][0])) {
     $search->setProperty('_per_page', $_GET['per_page'][0]);
 }
 $search->setProperty('_searching_class', $class);
 $search->setProperty('_form_post_link', 'select');
 $search->setProperty('_window_type', 'popover');
 $search->setProperty('_initial_search_array', ${$class}->initial_search);
 $search_form = $search->search_form(${$class});
 $select_result_statement = $search->select_result_op();
 if (!empty($pagination)) {
     $pagination->setProperty('_path', 'select');
     $pagination_statement = $pagination->show_pagination();
 }
开发者ID:moxymokaya,项目名称:inoERP,代码行数:31,代码来源:select.php


注:本文中的search::setProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。