コード例 #1
0
ファイル: ezextension.php プロジェクト: nottavi/ezpublish
 static function isExtension( $path )
 {
     if ( eZExtension::nameFromPath( $path ) )
         return true;
     else
         return false;
 }
コード例 #2
0
/**
 * @param string $path Path to check.
 * @return bool True if this path is related to some extension.
 * \note The root of an extension is considered to be in this path too.
 * @deprecated Since 4.3, use {@link eZExtension::isExtension()} instead
 */
function isExtension($path)
{
    if (eZExtension::nameFromPath($path)) {
        return true;
    } else {
        return false;
    }
}