Class rex_null_package

Represents a null package.

rex_null_package implements rex_package_interface uses rex_singleton_trait

Direct known subclasses

rex_null_addon, rex_null_plugin

Abstract
Package: redaxo\core\packages
Author: gharlan
Located at redaxo/src/core/lib/packages/null.php

Methods summary

public string
# getName( )

Returns the name of the package.

public rex_addon
# getAddon( )

Returns the related Addon.

public string
# getPackageId( )

Returns the package ID.

public
# getPath( string $file = '' )

Returns the base path.

public
# getAssetsPath( string $file = '' )

Returns the assets path.

public
# getAssetsUrl( string $file = '' )

Returns the assets url.

public
# getDataPath( string $file = '' )

Returns the data path.

public
# getCachePath( string $file = '' )

Returns the cache path.

public
# setConfig( mixed $key, mixed $value = null )
public
# getConfig( mixed $key = null, mixed $default = null )
public
# hasConfig( mixed $key = null )
public
# removeConfig( mixed $key )
public
# setProperty( string $key, mixed $value )

Sets a property.

public mixed
# getProperty( string $key, mixed $default = null )

Returns a property.

public boolean
# hasProperty( string $key )

Returns if a property is set.

public
# removeProperty( string $key )

Removes a property.

public boolean
# isAvailable( )

Returns if the package is available (activated and installed).

public boolean
# isInstalled( )

Returns if the package is installed.

public boolean
# isSystemPackage( )

Returns if it is a system package.

public mixed
# getAuthor( mixed $default = null )

Returns the author.

public mixed
# getVersion( string $format = null )

Returns the version.

public mixed
# getSupportPage( mixed $default = null )

Returns the supportpage.

public
# includeFile( string $file, array $context = [] )

Includes a file in the package context.

public string
# i18n( string $key )

Adds the package prefix to the given key and returns the translation for it.

Methods inherited from rex_package_interface

getType()

Methods used from rex_singleton_trait

__clone(), getInstance()