Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • 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
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • 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
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AdminPageHttpControllerResponse
  • Asset
  • HttpContext
  • HttpControllerResponse
  • JsonHttpControllerResponse
  • RedirectHttpControllerResponse

Class Asset

Class Asset

Asset implements AssetInterface
Package: Http\ValueObjects
Category: System
Located at Services/System/Http/ValueObjects/Asset.inc.php

Methods summary

public
# __construct( string $path )

Initializes the asset.

Initializes the asset.

Parameters

$path

Relative path to the asset file (relative to the "src" directory). Provide only the filename for translations (no path is required - e.g. general.lang.inc.php).

Throws

InvalidArgumentException
public string
# __toString( )

Get asset HTML markup.

Get asset HTML markup.

Returns

string
Returns the HTML markup that will load the file when the page is loaded.

Implementation of

AssetInterface::__toString()
public string
# getPath( )

Get the path of the asset.

Get the path of the asset.

Returns

string
public string
# getType( )

Get the type of the asset.

Get the type of the asset.

Returns

string

Constants summary

string JAVASCRIPT

JavaScript Asset Type

JavaScript Asset Type

# 'javascript'
string CSS

CSS Asset Type

CSS Asset Type

# 'css'
string TRANSLATION

JavaScript Translation

JavaScript Translation

# 'translation'

Properties summary

protected string $path

Asset's relative path.

Asset's relative path.

#
protected string $type

Asset's type (defined by the file extension).

Asset's type (defined by the file extension).

#
API documentation generated by ApiGen