403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/prosvasi/wp-content/plugins/polylang/src/Capabilities/Create/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/prosvasi/wp-content/plugins/polylang/src/Capabilities/Create/Abstract_Object.php
<?php
/**
 * @package Polylang
 */

namespace WP_Syntex\Polylang\Capabilities\Create;

use PLL_Model;
use PLL_Language;
use WP_Syntex\Polylang\REST\Request;

/**
 * Class to manage the language context for posts creation or update.
 *
 * @since 3.8
 */
abstract class Abstract_Object {
	/**
	 * @var PLL_Model
	 */
	protected $model;

	/**
	 * @var PLL_Language|null
	 */
	protected $pref_lang;

	/**
	 * @var PLL_Language|null
	 */
	protected $curlang;

	/**
	 * @var Request
	 */
	protected $request;

	/**
	 * Constructor.
	 *
	 * @since 3.8
	 *
	 * @param PLL_Model         $model     The model instance.
	 * @param Request           $request   The request instance.
	 * @param PLL_Language|null $pref_lang The preferred language.
	 * @param PLL_Language|null $curlang   The current language.
	 */
	public function __construct( PLL_Model $model, Request $request, ?PLL_Language $pref_lang, ?PLL_Language $curlang ) {
		$this->model     = $model;
		$this->request   = $request;
		$this->pref_lang = $pref_lang;
		$this->curlang   = $curlang;
	}

	/**
	 * Returns the language to set for an object creation or update based on the global context.
	 *
	 * @since 3.8
	 *
	 * @param int $id The object ID.
	 * @return PLL_Language The language defined from the global context.
	 */
	abstract public function get_language( int $id = 0 ): PLL_Language;
}

Youez - 2016 - github.com/yon3zu
LinuXploit