PHP Class tad\WPBrowser\Module\Support\UriToIndexMapper

ファイルを表示 Open project: lucatume/wp-browser Class Usage Examples

Protected Properties

Property Type Description
$map array
$root string The absolute path to the WordPress installation root folder.

Public Methods

Method Description
__construct ( string $root ) UriToIndexMapper constructor.
getIndexForUri ( $uri )
getRoot ( ) : string
setRoot ( string $root )

Method Details

__construct() public method

UriToIndexMapper constructor.
public __construct ( string $root )
$root string The absolute path to WordPress root folder.

getIndexForUri() public method

public getIndexForUri ( $uri )

getRoot() public method

public getRoot ( ) : string
return string

setRoot() public method

public setRoot ( string $root )
$root string

Property Details

$map protected_oe property

protected array $map
return array

$root protected_oe property

The absolute path to the WordPress installation root folder.
protected string $root
return string