ProductDetail contains details about a plugin or theme, sourcing information from either the file system or marketplace endpoint.

Public properties

public bool $isTheme

Is theme product

public string $name

Product name

public string $code

Product code

public string $composerCode

Composer code

public string $currentVersion

Current version

public string $author

Product author

public string $icon

Product icon

public string $image

Product image

public string $homepage

Product website URL

public string $contentHtml

Sales / Readme content

public string $upgradeHtml

Upgrade guide

public string $licenseHtml

License information

Protected properties

protected bool $isFound

isFound determines if a product was found

protected bool $isInstalled

isInstalled determines if a product is installed

protected bool $isOrphaned

isOrphaned is for plugins found in the database but not filesystem

Public methods

public void __construct($productCode, $isTheme=false)


  • $productCode
  • $isTheme

public void exists()

public void installed()

Protected methods

protected void getProductMarkdownFile($path, $filenames)

getProductMarkdownFile checks a path for supplied filesnames to parse as Markdown

  • $path
  • $filenames

protected void initPluginDatabase()

protected void initPluginLocal()

protected void initPluginRemote()

protected void initThemeLocal()

protected void initThemeRemote()