public function load()
	{
		if( $this->cacheType() === "data" )
		{
			$ref = new \ReflectionClass($this);
			$cache_name = Str::snake($ref->getShortName());
			$cache_data = $this->cacheData();

			if( isset($cache_data["id"]) )
			{
				$id = $cache_data["id"];
				unset($cache_data["id"]);
			}
			else
			{
				$id = $cache_data;
			}

			$cache = new Cache( $id, "plugin/" . $cache_name, $cache_data );
			if( $cache->ready() )
			{
				$this->plugin_data = $cache->import();
			}
			else
			{
				$this->loadPluginData();
				$cache->export($this->plugin_data);
			}
		}
		else
		{
			$this->loadPluginData();
		}

		return $this;
	}
public function load()
	{
		if( $this->cacheType() === "data" )
		{
			$ref = new \ReflectionClass($this);
			$cache_name = Str::snake($ref->getShortName());
			$cache_data = $this->cacheData();

			if( isset($cache_data["id"]) )
			{
				$id = $cache_data["id"];
				unset($cache_data["id"]);
			}
			else
			{
				$id = $cache_data;
			}

			$cache = new Cache( $id, "plugin/" . $cache_name, $cache_data );
			if( $cache->ready() )
			{
				$this->plugin_data = $cache->import();
			}
			else
			{
				$this->loadPluginData();
				$cache->export($this->plugin_data);
			}
		}
		else
		{
			$this->loadPluginData();
		}

		return $this;
	}
public function load ( ) { if ( $ this -> cacheType ( ) === "data" ) { $ ref = new \ ReflectionClass ( $ this ) ; $ cache_name = Str :: snake ( $ ref -> getShortName ( ) ) ; $ cache_data = $ this -> cacheData ( ) ; if ( isset ( $ cache_data [ "id" ] ) ) { $ id = $ cache_data [ "id" ] ; unset ( $ cache_data [ "id" ] ) ; } else { $ id = $ cache_data ; } $ cache = new Cache ( $ id , "plugin/" . $ cache_name , $ cache_data ) ; if ( $ cache -> ready ( ) ) { $ this -> plugin_data = $ cache -> import ( ) ; } else { $ this -> loadPluginData ( ) ; $ cache -> export ( $ this -> plugin_data ) ; } } else { $ this -> loadPluginData ( ) ; } return $ this ; }
Load plugin data
@return $this
Load plugin data