Class Application
Application is the main Mapbender3 class.
This class is the controller for each application instance. The application class will not perform any access checks, this is due to the controller instantiating an application. The controller should check with the configuration entity to get a list of allowed roles and only then decide to instantiate a new application instance based on the configuration entity.
Author: Christian Wygoda
Located at Mapbender/CoreBundle/Component/Application.php
Methods summary
public
|
#
__construct( Symfony\Component\DependencyInjection\ContainerInterface $container,
|
public
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
render( string $format = 'html', boolean $html = true, boolean $css = true, boolean $js = true, boolean $trans = true )
Render the application |
public static
array
|
|
public
array
|
#
getAssets( string $type )
Get the assets as an AsseticCollection. Filters can be applied later on with the ensureFilter method. |
public
Assetic\Asset\StringAsset
|
|
public
string
|
#
getConfiguration( )
Get the configuration (application, elements, layers) as an StringAsset. Filters can be applied later on with the ensureFilter method. |
public
|
|
public
|
|
public
Doctrine\ORM\PersistentCollection
|
|
public
|
|
public static
string
|
#
generateSlug( Symfony\Component\DependencyInjection\ContainerInterface $container, string $slug, string $suffix = 'copy' )
Checks and generates a valid slug. |
public static
string
|
#
getUploadsDir( Symfony\Component\DependencyInjection\ContainerInterface $container, boolean $webRelative = false )
Returns the public "uploads" directory. |
public static
boolean
|
#
getAppWebDir( Symfony\Component\DependencyInjection\ContainerInterface $container, string $slug )
Returns the application's public directory. |
public static
boolean
|
#
createAppWebDir( Symfony\Component\DependencyInjection\ContainerInterface $container, string $slug, string $old_slug = null )
Creates or checks if the application's public directory is created or exist. |
public static
boolean
|
#
removeAppWebDir( Symfony\Component\DependencyInjection\ContainerInterface $container, string $slug )
Removes application's public directoriy. |
public static
string
|
#
getAppWebUrl( Symfony\Component\DependencyInjection\ContainerInterface $container, string $slug )
Returns an url to application's public directory. |
public static
string
|
#
getUploadsUrl( Symfony\Component\DependencyInjection\ContainerInterface $container )
Returns an url to public "uploads" directory. |
public static
string
|
#
getBaseUrl( Symfony\Component\DependencyInjection\ContainerInterface $container )
Returns a base url. |
public static
boolean
|
#
copyAppWebDir( Symfony\Component\DependencyInjection\ContainerInterface $container, string $srcSslug, string $destSlug )
Copies an application web order. |
protected
|
|
protected
|
|
public
boolean
|
#
isElementGranted(
Is element granted? |
public
|
Magic methods summary
Properties summary
protected
Symfony\Component\DependencyInjection\ContainerInterface
|
$container
$container The container |
|
protected
|
$template
$template The application template class |
|
protected
array
|
$elements
$elements The elements, ordered by weight |
|
protected
array
|
$layers
$layers The layers |
|
protected
array
|
$urls
$urls Runtime URLs |
|
protected
|
$entity
|