403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/seo-by-rank-math/includes/admin/database/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/seo-by-rank-math/includes/admin/database/class-joins.php
<?php
/**
 * The joins functions.
 *
 * @since      1.0.0
 * @package    RankMath
 * @subpackage RankMath\Admin\Database
 * @author     RankMath <support@rankmath.com>
 */

namespace RankMath\Admin\Database;

/**
 * Joins class.
 */
trait Joins {

	/**
	 * Generate left join clause.
	 *
	 * @param string $table    The SQL table.
	 * @param mixed  $column1  The SQL Column.
	 * @param mixed  $column2  The SQL Column.
	 * @param string $operator The Operator.
	 * @param string $alias    The table alias.
	 *
	 * @return self The current query builder.
	 */
	public function leftJoin( $table, $column1, $column2, $operator = '=', $alias = '' ) { // @codingStandardsIgnoreLine
		if ( empty( $table ) || empty( $column1 ) || empty( $column2 ) ) {
			return $this;
		}

		if ( ! empty( $alias ) ) {
			$table = "{$table} AS {$alias}";
		}

		$this->add_sql_clause( 'left_join', "LEFT JOIN {$table} ON {$column1} {$operator} {$column2}" );

		return $this;
	}

	/**
	 * Generate right join clause.
	 *
	 * @param string $table    The SQL table.
	 * @param mixed  $column1  The SQL Column.
	 * @param mixed  $column2  The SQL Column.
	 * @param string $operator The Operator.
	 * @param string $alias    The table alias.
	 *
	 * @return self The current query builder.
	 */
	public function rightJoin( $table, $column1, $column2, $operator = '=', $alias = '' ) { // @codingStandardsIgnoreLine
		if ( empty( $table ) || empty( $column1 ) || empty( $column2 ) ) {
			return $this;
		}

		if ( ! empty( $alias ) ) {
			$table = "{$table} AS {$alias}";
		}

		$this->add_sql_clause( 'right_join', "RIGHT JOIN {$table} ON {$column1} {$operator} {$column2}" );

		return $this;
	}

	/**
	 * Generate left join clause.
	 *
	 * @param string $table    The SQL table.
	 * @param mixed  $column1  The SQL Column.
	 * @param mixed  $column2  The SQL Column.
	 * @param string $operator The Operator.
	 * @param string $alias    The table alias.
	 *
	 * @return self The current query builder.
	 */
	public function join( $table, $column1, $column2, $operator = '=', $alias = '' ) { // @codingStandardsIgnoreLine
		if ( empty( $table ) || empty( $column1 ) || empty( $column2 ) ) {
			return $this;
		}

		if ( ! empty( $alias ) ) {
			$table = "{$table} AS {$alias}";
		}

		$this->add_sql_clause( 'join', "JOIN {$table} ON {$column1} {$operator} {$column2}" );

		return $this;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit