SimplePie_Cache_File::__construct

Advertisement

Summery Summery

Create a new cache object

Syntax Syntax

SimplePie_Cache_File::__construct( string $location, string $name, string $type )

Parameters Parameters

$location

(Required) Location string (from SimplePie::$cache_location)

$name

(Required) Unique ID for the cache

$type

(Required) Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data

Source Source

File: wp-includes/SimplePie/Cache/File.php

	{
		$this->location = $location;
		$this->filename = $name;
		$this->extension = $type;
		$this->name = "$this->location/$this->filename.$this->extension";
	}

Advertisement

Advertisement

Leave a Reply