backward.php
12 years ago
get_taxonomies_by_object_type.php
10 years ago
pmxe_filter.php
8 years ago
pmxe_functions.php
5 years ago
pmxe_prepare_price.php
8 years ago
pmxe_render_xml_attributes.php
9 years ago
pmxe_render_xml_element.php
8 years ago
pmxe_render_xml_text.php
8 years ago
str_getcsv.php
12 years ago
wp_all_export_check_children_assign.php
10 years ago
wp_all_export_clear_xss.php
4 years ago
wp_all_export_generate_export_file.php
8 years ago
wp_all_export_get_cpt_name.php
8 years ago
wp_all_export_get_export_format.php
8 years ago
wp_all_export_is_compatible.php
10 years ago
wp_all_export_parse_field_name.php
9 years ago
wp_all_export_posts_join.php
10 years ago
wp_all_export_posts_where.php
8 years ago
wp_all_export_pre_user_query.php
6 years ago
wp_all_export_prepare_template_csv.php
6 years ago
wp_all_export_prepare_template_xml.php
6 years ago
wp_all_export_rand_char.php
10 years ago
wp_all_export_remove_colons.php
10 years ago
wp_all_export_remove_source.php
10 years ago
wp_all_export_reverse_rules_html.php
8 years ago
wp_all_export_rmdir.php
10 years ago
wp_all_export_secure_file.php
9 years ago
wp_all_export_url_title.php
10 years ago
wp_all_export_write_article.php
10 years ago
wp_redirect_or_javascript.php
12 years ago
wp_all_export_pre_user_query.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | function wp_all_export_pre_user_query($obj) |
| 4 | { |
| 5 | if ( ! empty(PMXE_Plugin::$session) and PMXE_Plugin::$session->has_session() ) |
| 6 | { |
| 7 | // manual export run |
| 8 | $customWhere = PMXE_Plugin::$session->get('whereclause'); |
| 9 | $obj->query_where .= $customWhere; |
| 10 | |
| 11 | $customJoin = PMXE_Plugin::$session->get('joinclause'); |
| 12 | |
| 13 | if ( ! empty( $customJoin ) ) { |
| 14 | foreach ($customJoin as $join) { |
| 15 | $obj->query_from = str_replace(trim($join), "", $obj->query_from); |
| 16 | } |
| 17 | $obj->query_from .= implode( ' ', array_unique( $customJoin ) ); |
| 18 | } |
| 19 | } |
| 20 | else |
| 21 | { |
| 22 | // cron job execution |
| 23 | if ( ! empty(XmlExportEngine::$exportOptions['whereclause']) ) $obj->query_where .= XmlExportEngine::$exportOptions['whereclause']; |
| 24 | if ( ! empty(XmlExportEngine::$exportOptions['joinclause']) ) { |
| 25 | $obj->query_from .= implode( ' ', array_unique( XmlExportEngine::$exportOptions['joinclause'] ) ); |
| 26 | } |
| 27 | } |
| 28 | return $obj; |
| 29 | } |