Table of Contents

isOwner

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage FileSystem Class JPath Method isOwner Reference isOwner() Never Work in Progress

This method determines if the current script owns the path.

Syntax

boolean isOwner ( $path )

$path string is a string containing the path to check the ownership of.

Examples

Example

jimport( 'joomla.filesystem.path' );

echo "Ownership: ";
echo JPath::isOwner( JPATH_ROOT . '/robots.txt' ) ? 'true' : 'false';

might produce:

Result

Ownership: true