403Webshell
Server IP : 49.212.180.16  /  Your IP : 3.149.241.32
Web Server : Apache
System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User : utannto ( 1076)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/utannto/www/hironaka.biz/wp-content/plugins/easing-slider/src/Foundation/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/utannto/www/hironaka.biz/wp-content/plugins/easing-slider/src/Foundation/Models/Model.php
<?php

namespace EasingSlider\Foundation\Models;

use EasingSlider\Foundation\Contracts\Models\Model as ModelContract;

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

abstract class Model implements ModelContract
{
	/**
	 * Attributes
	 *
	 * @var array
	 */
	protected $attributes;

	/**
	 * Constructor
	 *
	 * @return void
	 */
	public function __construct()
	{
		$this->attributes = $this->getDefaults();
	}

	/**
	 * __get function.
	 *
	 * @param  string $key
	 * @return mixed
	 */
	public function __get($key)
	{
		return $this->get($key);
	}

	/**
	 * __set function.
	 *
	 * @param string $key
	 * @param mixed  $value
	 */
	public function __set($key, $value)
	{
		$this->set($key, $value);
	}

	/**
	 * __isset function.
	 *
	 * @param  string $key
	 * @return bool
	 */
	public function __isset($key)
	{
		return isset($this->attributes[$key]);
	}

	/**
	 * Fills attributes
	 *
	 * @param  array $data
	 * @return void
	 */
	public function fill($data = array())
	{
		foreach ($data as $key => $value) {
			$this->set($key, $value);
		}
	}

	/**
	 * Set an attribute value
	 *
	 * @param  string $key
	 * @param  mixed  $value
	 * @return void
	 */
	public function set($key, $value)
	{
		$this->attributes[$key] = $value;
	}

	/**
	 * Get an attribute value
	 *
	 * @param  string $key
	 * @return array
	 */
	public function get($key)
	{
		return $this->attributes[$key];
	}

	/**
	 * Gets the model attributes
	 *
	 * @return array 
	 */
	public function getAttributes()
	{
		return $this->attributes;
	}

	/**
	 * Gets the model defaults
	 *
	 * @return array
	 */
	public function getDefaults()
	{
		//
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit