Class Phalcon\Assets\Inline
implements Phalcon\Assets\ResourceInterface
Represents an inline asset
<?php
$inline = new \Phalcon\Assets\Inline("js", "alert('hello world');");
Methods
public getType ()
...
public getContent ()
...
public getFilter ()
...
public getAttributes ()
...
public __construct (string $type, string $content, [boolean $filter], [array $attributes])
Phalcon\Assets\Inline constructor
Sets the inline's type
public setFilter (mixed $filter)
Sets if the resource must be filtered or not
public setAttributes (array $attributes)
Sets extra HTML attributes
public getResourceKey ()
Gets the resource's key.
General
Contributions
Getting Started
Tutorials
Environments
Development Tools
Database
Business Logic