クラス WP_Date_Query::get_sql()
2014/12/16
WP_Date_Query::get_sql()
定義ファイル :/blog/wp-includes/date.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | public function get_sql() { // The parts of the final query $where = array(); foreach ( $this->queries as $key => $query ) { $where_parts = $this->get_sql_for_subquery( $query ); if ( $where_parts ) { // Combine the parts of this subquery into a single string $where[ $key ] = '( ' . implode( ' AND ', $where_parts ) . ' )'; } } // Combine the subquery strings into a single string if ( $where ) $where = ' AND ( ' . implode( " {$this->relation} ", $where ) . ' )'; else $where = ''; return apply_filters( 'get_date_sql', $where, $this ); } |