Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • 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
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • 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 SystemServices/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).

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()

Constants summary

string JAVASCRIPT

JavaScript Asset Type

JavaScript Asset Type

# 'javascript'
string CSS

CSS Asset Type

CSS Asset Type

# 'css'

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