[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.23.103.14: ~ $
<?php
/**
 * Deprecated. Use LearnDash\Core\Models\Model instead.
 *
 * This class provides the easy way to operate a post.
 *
 * @since 4.5.0
 * @deprecated 4.6.0
 *
 * @package LearnDash\Deprecated
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

_deprecated_file(
	__FILE__,
	'4.6.0',
	esc_html( LEARNDASH_LMS_PLUGIN_DIR . '/src/Core/Models/Model.php' )
);

if ( ! class_exists( 'Learndash_Model' ) ) {
	/**
	 * Model class.
	 *
	 * @since 4.5.0
	 * @deprecated 4.6.0
	 */
	abstract class Learndash_Model extends \LearnDash\Core\Models\Post {
		/**
		 * Sets multiple attributes.
		 *
		 * @since 4.5.0
		 * @deprecated 4.6.0
		 *
		 * @param array<string,mixed> $attributes Attributes. Keys are attribute names, values are attribute values.
		 *
		 * @return void
		 */
		public function set_attributes( array $attributes ): void {
			_deprecated_function( __METHOD__, '4.6.0', 'fill' );

			foreach ( $attributes as $attribute_name => $attribute_value ) {
				$this->set_attribute( $attribute_name, $attribute_value );
			}
		}

		/**
		 * Returns an attribute value or null if not found.
		 *
		 * @since 4.5.0
		 * @deprecated 4.6.0
		 *
		 * @param string $attribute_name  Attribute name.
		 * @param mixed  $attribute_value Attribute value.
		 *
		 * @return void
		 */
		public function set_attribute( string $attribute_name, $attribute_value ): void {
			_deprecated_function( __METHOD__, '4.6.0', 'setAttribute' );

			$this->attributes[ $attribute_name ] = $attribute_value;
		}

		/**
		 * Returns all attributes.
		 *
		 * @since 4.5.0
		 * @deprecated 4.6.0
		 *
		 * @return array<string,mixed>
		 */
		public function get_attributes(): array {
			_deprecated_function( __METHOD__, '4.6.0', 'toArray' );

			return $this->toArray();
		}

		/**
		 * Returns an attribute value or null if not found.
		 *
		 * @since 4.5.0
		 * @deprecated 4.6.0
		 *
		 * @param string $attribute_name Attribute name.
		 * @param mixed  $default        Default value.
		 *
		 * @return mixed
		 */
		public function get_attribute( string $attribute_name, $default = null ) {
			_deprecated_function( __METHOD__, '4.6.0', 'getAttribute' );

			return $this->attributes[ $attribute_name ] ?? $default;
		}

		/**
		 * Removes all attributes.
		 *
		 * @since 4.5.0
		 * @deprecated 4.6.0
		 *
		 * @return void
		 */
		public function clear_attributes(): void {
			_deprecated_function( __METHOD__, '4.6.0' );

			$this->attributes = array();
		}

		/**
		 * Removes an attribute.
		 *
		 * @since 4.5.0
		 * @deprecated 4.6.0
		 *
		 * @param string $attribute_name Attribute name.
		 *
		 * @return void
		 */
		public function remove_attribute( string $attribute_name ): void {
			_deprecated_function( __METHOD__, '4.6.0' );

			unset( $this->attributes[ $attribute_name ] );
		}

		/**
		 * Returns true if an attribute exists. Otherwise, false.
		 *
		 * @since 4.5.0
		 * @deprecated 4.6.0
		 *
		 * @param string $attribute_name Attribute name.
		 *
		 * @return bool
		 */
		public function has_attribute( string $attribute_name ): bool {
			_deprecated_function( __METHOD__, '4.6.0', 'hasAttribute' );

			return isset( $this->attributes[ $attribute_name ] );
		}
	}
}

Filemanager

Name Type Size Permission Actions
Core Folder 0755
LD_REST_Posts_Gutenberg_Controller.php File 8.65 KB 0644
LearnDash_Dependency_Check_ProPanel.php File 5.78 KB 0644
LearnDash_PayPal_IPN.php File 45.63 KB 0644
LearnDash_Payment_Gateway_Integration.php File 1.97 KB 0644
LearnDash_Razorpay_Integration.php File 12.08 KB 0644
LearnDash_Settings_Section_Translations_Learndash_ProPanel.php File 2.54 KB 0644
LearnDash_Stripe_Connect_Checkout_Integration.php File 9.19 KB 0644
Learndash_Model.php File 3.1 KB 0644
Learndash_Product_Model.php File 3.14 KB 0644
Learndash_Transaction_Model.php File 3.15 KB 0644
nss_plugin_updater_sfwd_lms.php File 33.36 KB 0644