Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Orders
    • Serializers
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Interfaces
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AssetCollection
  • ContentNavigationCollection

Class AssetCollection

Class AssetCollection

Handles Asset objects (JavaScript and CSS). Use the getHtml() method to get the HTML output for the collection. The elements will be outputted in the same order they were added in the collection.

AbstractCollection implements IteratorAggregate, Countable
Extended by AssetCollection implements AssetCollectionInterface
Package: Http\Collections
Category: System
Located at Services/System/Http/Collections/AssetCollection.inc.php

Methods summary

public
# add( AssetInterface $asset )

Adds a new asset to the collection.

Adds a new asset to the collection.

Parameters

$asset

Implementation of

AssetCollectionInterface::add()
public string
# getHtml( StringType $type = null )

Prints the HTML markup for the assets.

Prints the HTML markup for the assets.

Parameters

$type

(optional) You can provide either Asset::JAVASCRIPT, Asset::CSS or Asset::TRANSLATION in order to get the HTML only for a specific type of assets.

Returns

string
Returns the HTML markup of the assets.

Implementation of

AssetCollectionInterface::getHtml()
public array
# getTranslations( )

Get all the translation assets as one array.

Get all the translation assets as one array.

This array can then be used in frontend from JavaScript (JS Engine or plain scripts).

Returns

array
protected string
# _getValidType( )

Returns the type of the collection items.

Returns the type of the collection items.

Returns

string

Methods inherited from AbstractCollection

__construct(), _add(), _getExceptionText(), _itemIsValid(), count(), getArray(), getItem(), getIterator(), isEmpty()

Properties summary

Properties inherited from AbstractCollection

$collectionContentArray

API documentation generated by ApiGen