__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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

namespace ElementorPro\Modules\Notes\Database\Models;

use ElementorPro\Plugin;
use ElementorPro\Core\Database\Model_Base;
use ElementorPro\Core\Database\Join_Clause;
use ElementorPro\Core\Database\Query_Builder;
use Elementor\Core\Base\Document as OriginalDocument;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Document extends Model_Base {
	/**
	 * The document id (post_id)
	 *
	 * @var integer
	 */
	public $ID;

	/**
	 * The type of the document (post meta key = '_elementor_template_type')
	 *
	 * @var string
	 */
	public $type;

	/**
	 * Casts array.
	 *
	 * @var array
	 */
	protected static $casts = [
		'ID' => self::TYPE_INTEGER,
	];

	/**
	 * Override the default Query Builder.
	 *
	 * @param \wpdb|null $connection
	 *
	 * @return Query_Builder
	 */
	public static function query( \wpdb $connection = null ) {
		// PHPCS has an error without any reason, the method 'query' is not related to the `wpdb` object.
		return parent::query( $connection ) // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
			->select( [
				'ID',
				'type' => 'postmeta.meta_value',
			] )
			->left_join( function ( Join_Clause $j ) {
				return $j->table( 'postmeta' )
					->on_column( 'posts.ID', '=', 'postmeta.post_id' )
					->on( 'postmeta.meta_key', '=', OriginalDocument::TYPE_META_KEY );
			} );
	}

	/**
	 * Get the posts table name.
	 *
	 * @return string
	 */
	public static function get_table() {
		return 'posts';
	}

	/**
	 * Get the label of a document.
	 *
	 * @return string|null
	 */
	public function get_type_title() {
		if ( ! $this->type ) {
			return null;
		}

		$type_classname = Plugin::elementor()->documents->get_document_type( $this->type );

		return $type_classname ? $type_classname::get_title() : null;
	}

	/**
	 * Return a JSON serialized representation of the User.
	 *
	 * @return array
	 */
	#[\ReturnTypeWillChange]
	public function jsonSerialize() {
		return [
			'id' => $this->ID,
			'type' => $this->type,
			'type_title' => $this->get_type_title(),
		];
	}
}

Filemanager

Name Type Size Permission Actions
document.php File 1.99 KB 0664
note-summary.php File 1.5 KB 0664
note.php File 9.76 KB 0664
user.php File 2.2 KB 0664
Filemanager