- Phalcon\Html\Attributes
- Phalcon\Html\Attributes\AttributesInterface
- Phalcon\Html\Attributes\RenderInterface
- Phalcon\Html\Breadcrumbs
- Phalcon\Html\Exception
- Phalcon\Html\Helper\AbstractHelper
- Phalcon\Html\Helper\AbstractList
- Phalcon\Html\Helper\AbstractSeries
- Phalcon\Html\Helper\Anchor
- Phalcon\Html\Helper\Base
- Phalcon\Html\Helper\Body
- Phalcon\Html\Helper\Button
- Phalcon\Html\Helper\Close
- Phalcon\Html\Helper\Element
- Phalcon\Html\Helper\Form
- Phalcon\Html\Helper\Img
- Phalcon\Html\Helper\Input\AbstractInput
- Phalcon\Html\Helper\Input\Checkbox
- Phalcon\Html\Helper\Input\Color
- Phalcon\Html\Helper\Input\Date
- Phalcon\Html\Helper\Input\DateTime
- Phalcon\Html\Helper\Input\DateTimeLocal
- Phalcon\Html\Helper\Input\Email
- Phalcon\Html\Helper\Input\File
- Phalcon\Html\Helper\Input\Hidden
- Phalcon\Html\Helper\Input\Image
- Phalcon\Html\Helper\Input\Input
- Phalcon\Html\Helper\Input\Month
- Phalcon\Html\Helper\Input\Numeric
- Phalcon\Html\Helper\Input\Password
- Phalcon\Html\Helper\Input\Radio
- Phalcon\Html\Helper\Input\Range
- Phalcon\Html\Helper\Input\Search
- Phalcon\Html\Helper\Input\Select
- Phalcon\Html\Helper\Input\Submit
- Phalcon\Html\Helper\Input\Tel
- Phalcon\Html\Helper\Input\Text
- Phalcon\Html\Helper\Input\Textarea
- Phalcon\Html\Helper\Input\Time
- Phalcon\Html\Helper\Input\Url
- Phalcon\Html\Helper\Input\Week
- Phalcon\Html\Helper\Label
- Phalcon\Html\Helper\Link
- Phalcon\Html\Helper\Meta
- Phalcon\Html\Helper\Ol
- Phalcon\Html\Helper\Script
- Phalcon\Html\Helper\Style
- Phalcon\Html\Helper\Title
- Phalcon\Html\Helper\Ul
- Phalcon\Html\Link\EvolvableLink
- Phalcon\Html\Link\EvolvableLinkProvider
- Phalcon\Html\Link\Link
- Phalcon\Html\Link\LinkProvider
- Phalcon\Html\Link\Serializer\Header
- Phalcon\Html\Link\Serializer\SerializerInterface
- Phalcon\Html\TagFactory
Class Phalcon\Html\Attributes
| Namespace | Phalcon\Html | | Uses | Phalcon\Collection, Phalcon\Html\Attributes\RenderInterface, Phalcon\Tag | | Extends | Collection | | Implements | RenderInterface |
This class helps to work with HTML Attributes
Methods¶
Alias of the render method Render attributes as HTML attributesInterface Phalcon\Html\Attributes\AttributesInterface
| Namespace | Phalcon\Html\Attributes | | Uses | Phalcon\Html\Attributes |
- Phalcon\Html\Attributes\AttributesInterface *
- Interface Phalcon\Html\Attributes\AttributesInterface */
Methods¶
Get Attributes Set AttributesInterface Phalcon\Html\Attributes\RenderInterface
| Namespace | Phalcon\Html\Attributes |
- Phalcon\Html\Attributes\RenderInterface *
- Interface Phalcon\Html\Attributes\RenderInterface */
Methods¶
Generate a string represetationClass Phalcon\Html\Breadcrumbs
| Namespace | Phalcon\Html | | Uses | Phalcon\Di\DiInterface |
Phalcon\Html\Breadcrumbs
This component offers an easy way to create breadcrumbs for your application. The resulting HTML when calling render()
will have each breadcrumb enclosed in <dt>
tags, while the whole string is enclosed in <dl>
tags.
Properties¶
/**
* Keeps all the breadcrumbs
*
* @var array
*/
private elements;
/**
* Crumb separator
*
* @var string
*/
private separator = / ;
/**
* The HTML template to use to render the breadcrumbs.
*
* @var string
*/
private template = <dt><a href=\"%link%\">%label%</a></dt>;
Methods¶
Adds a new crumb.// Adding a crumb with a link
$breadcrumbs->add("Home", "/");
// Adding a crumb without a link (normally the last one)
$breadcrumbs->add("Users");
$breadcrumbs->remove("/admin/user/create");
// remove a crumb without an url (last link)
$breadcrumbs->remove();
Class Phalcon\Html\Exception
| Namespace | Phalcon\Html | | Extends | \Phalcon\Exception |
Phalcon\Html\Tag\Exception
Exceptions thrown in Phalcon\Html\Tag will use this class
Abstract Class Phalcon\Html\Helper\AbstractHelper
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Escaper\EscaperInterface, Phalcon\Html\Exception |
Class AbstractHelper
@property string $delimiter @property Escaper $escaper @property string $indent @property int $indentLevel
Properties¶
/**
* @var string
*/
protected delimiter = ;
/**
* @var EscaperInterface
*/
protected escaper;
/**
* @var string
*/
protected indent = ;
/**
* @var int
*/
protected indentLevel = 1;
Methods¶
AbstractHelper constructor. Produces a closing tag Replicates the indent x times as per indentLevel Keeps all the attributes sorted - same order all the tome Traverses an array and calls the method defined in the first element with attributes as the second, returning the resulting string Renders all the attributes Renders an elementprotected function renderFullElement( string $tag, string $text, array $attributes = [], bool $raw = bool ): string;
protected function renderTag( string $tag, array $attributes = [], string $close = string ): string;
Abstract Class Phalcon\Html\Helper\AbstractList
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class AbstractList
Properties¶
/**
* @var array
*/
protected attributes;
/**
* @var string
*/
protected elementTag = li;
/**
* @var array
*/
protected store;
Methods¶
public function __invoke( string $indent = null, string $delimiter = null, array $attributes = [] ): AbstractList;
Abstract Class Phalcon\Html\Helper\AbstractSeries
| Namespace | Phalcon\Html\Helper | | Extends | AbstractHelper |
Class AbstractSeries
Properties¶
Methods¶
Generates and returns the HTML for the list. Returns the tag name.Class Phalcon\Html\Helper\Anchor
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Anchor
Methods¶
public function __invoke( string $href, string $text, array $attributes = [], bool $raw = bool ): string;
Class Phalcon\Html\Helper\Base
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Base
Methods¶
Produce a<base/>
tag. Class Phalcon\Html\Helper\Body
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Body
Methods¶
Produce a<body>
tag. Class Phalcon\Html\Helper\Button
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Button
Methods¶
Produce a<button>
tag. Class Phalcon\Html\Helper\Close
| Namespace | Phalcon\Html\Helper | | Extends | AbstractHelper |
Class Close
Methods¶
Produce a</...>
tag. Class Phalcon\Html\Helper\Element
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Element
Methods¶
public function __invoke( string $tag, string $text, array $attributes = [], bool $raw = bool ): string;
Class Phalcon\Html\Helper\Form
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Form
Methods¶
Produce a<form>
tag. Class Phalcon\Html\Helper\Img
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Img
Methods¶
Produce a tag.Abstract Class Phalcon\Html\Helper\Input\AbstractInput
| Namespace | Phalcon\Html\Helper\Input | | Uses | Phalcon\Html\Helper\AbstractHelper | | Extends | AbstractHelper |
Class AbstractInput
@property array $attributes @property string $type @property string $value
Properties¶
Methods¶
public function __invoke( string $name, string $value = null, array $attributes = [] ): AbstractInput;
Class Phalcon\Html\Helper\Input\Checkbox
| Namespace | Phalcon\Html\Helper\Input | | Uses | Phalcon\Escaper\EscaperInterface, Phalcon\Helper\Arr | | Extends | AbstractInput |
Class Checkbox
@property array $label
Properties¶
Methods¶
AbstractHelper constructor. Returns the HTML for the input. Attaches a label to the elementClass Phalcon\Html\Helper\Input\Color
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Color
Properties¶
Class Phalcon\Html\Helper\Input\Date
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Date
Properties¶
Class Phalcon\Html\Helper\Input\DateTime
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class DateTime
Properties¶
Class Phalcon\Html\Helper\Input\DateTimeLocal
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class DateTimeLocal
Properties¶
Class Phalcon\Html\Helper\Input\Email
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Email
Properties¶
Class Phalcon\Html\Helper\Input\File
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class File
Properties¶
Class Phalcon\Html\Helper\Input\Hidden
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Hidden
Properties¶
Class Phalcon\Html\Helper\Input\Image
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Image
Properties¶
Class Phalcon\Html\Helper\Input\Input
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Input
Methods¶
Sets the type of the inputClass Phalcon\Html\Helper\Input\Month
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Month
Properties¶
Class Phalcon\Html\Helper\Input\Numeric
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Numeric
Properties¶
Class Phalcon\Html\Helper\Input\Password
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Password
Properties¶
Class Phalcon\Html\Helper\Input\Radio
| Namespace | Phalcon\Html\Helper\Input | | Extends | Checkbox |
Class Radio
Properties¶
Class Phalcon\Html\Helper\Input\Range
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Range
Properties¶
Class Phalcon\Html\Helper\Input\Search
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Search
Properties¶
Class Phalcon\Html\Helper\Input\Select
| Namespace | Phalcon\Html\Helper\Input | | Uses | Phalcon\Html\Helper\AbstractList | | Extends | AbstractList |
Class Select
@property string $elementTag @property bool $inOptGroup @property string $selected
Properties¶
/**
* @var string
*/
protected elementTag = option;
/**
* @var bool
*/
protected inOptGroup = false;
/**
* @var string
*/
protected selected = ;
Methods¶
public function add( string $text, string $value = null, array $attributes = [], bool $raw = bool ): Select;
public function addPlaceholder( string $text, mixed $value = null, array $attributes = [], bool $raw = bool ): Select;
Class Phalcon\Html\Helper\Input\Submit
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Submit
Properties¶
Class Phalcon\Html\Helper\Input\Tel
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Tel
Properties¶
Class Phalcon\Html\Helper\Input\Text
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Text
Class Phalcon\Html\Helper\Input\Textarea
| Namespace | Phalcon\Html\Helper\Input | | Uses | Phalcon\Helper\Arr, Phalcon\Html\Exception | | Extends | AbstractInput |
Class Textarea
Properties¶
Methods¶
Returns the HTML for the input.Class Phalcon\Html\Helper\Input\Time
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Time
Properties¶
Class Phalcon\Html\Helper\Input\Url
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Url
Properties¶
Class Phalcon\Html\Helper\Input\Week
| Namespace | Phalcon\Html\Helper\Input | | Extends | AbstractInput |
Class Week
Properties¶
Class Phalcon\Html\Helper\Label
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Label
Methods¶
Produce a<label>
tag. Class Phalcon\Html\Helper\Link
| Namespace | Phalcon\Html\Helper | | Extends | AbstractSeries |
Class Link
Methods¶
Add an element to the listClass Phalcon\Html\Helper\Meta
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractSeries |
Class Meta
Methods¶
Add an element to the listClass Phalcon\Html\Helper\Ol
| Namespace | Phalcon\Html\Helper | | Extends | AbstractList |
Class Ol
Methods¶
Add an element to the listClass Phalcon\Html\Helper\Script
| Namespace | Phalcon\Html\Helper | | Extends | Style |
Class Script
Methods¶
Returns the necessary attributesClass Phalcon\Html\Helper\Style
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractSeries |
Class Style
Methods¶
Add an element to the list Returns the necessary attributesClass Phalcon\Html\Helper\Title
| Namespace | Phalcon\Html\Helper | | Uses | Phalcon\Html\Exception | | Extends | AbstractHelper |
Class Title
@property array $append @property string $delimiter @property string $indent @property array $prepend @property string $title @property string $separator
Properties¶
/**
* @var array
*/
protected append;
/**
* @var array
*/
protected prepend;
/**
* @var string
*/
protected title = ;
/**
* @var string
*/
protected separator = ;
Methods¶
public function __invoke( string $separator = string, string $indent = null, string $delimiter = null ): Title;
Class Phalcon\Html\Helper\Ul
| Namespace | Phalcon\Html\Helper | | Extends | Ol |
Class Ul
Methods¶
Class Phalcon\Html\Link\EvolvableLink
| Namespace | Phalcon\Html\Link | | Uses | Psr\Link\EvolvableLinkInterface | | Extends | Link | | Implements | EvolvableLinkInterface |
Class Phalcon\Http\Link\EvolvableLink
@property array attributes @property string href @property array rels @property bool templated
Methods¶
Returns an instance with the specified attribute added.If the specified attribute is already present, it will be overwritten with the new value.
Returns an instance with the specified href. Returns an instance with the specified relationship included.If the specified rel is already present, this method MUST return normally without errors, but without adding the rel a second time.
Returns an instance with the specified attribute excluded.If the specified attribute is not present, this method MUST return normally without errors.
Returns an instance with the specified relationship excluded.If the specified rel is not present, this method MUST return normally without errors.
Class Phalcon\Html\Link\EvolvableLinkProvider
| Namespace | Phalcon\Html\Link | | Uses | Psr\Link\EvolvableLinkProviderInterface, Psr\Link\LinkInterface | | Extends | LinkProvider | | Implements | EvolvableLinkProviderInterface |
Class Phalcon\Http\Link\LinkProvider
@property LinkInterface[] links
Methods¶
Returns an instance with the specified link included.If the specified link is already present, this method MUST return normally without errors. The link is present if link is === identical to a link object already in the collection.
Returns an instance with the specified link removed.If the specified link is not present, this method MUST return normally without errors. The link is present if link is === identical to a link object already in the collection.
Class Phalcon\Html\Link\Link
| Namespace | Phalcon\Html\Link | | Uses | Phalcon\Collection, Phalcon\Collection\CollectionInterface, Psr\Link\LinkInterface | | Implements | LinkInterface |
Class Phalcon\Http\Link\Link
@property array attributes @property string href @property array rels @property bool templated
Properties¶
/**
* @var Collection|CollectionInterface
*/
protected attributes;
/**
* @var string
*/
protected href = ;
/**
* @var Collection|CollectionInterface
*/
protected rels;
/**
* @var bool
*/
protected templated = false;
Methods¶
Link constructor. Returns a list of attributes that describe the target URI. Returns the target of the link.The target link must be one of: - An absolute URI, as defined by RFC 5988. - A relative URI, as defined by RFC 5988. The base of the relative link is assumed to be known based on context by the client. - A URI template as defined by RFC 6570.
If a URI template is returned, isTemplated() MUST return True.
Returns the relationship type(s) of the link.This method returns 0 or more relationship types for a link, expressed as an array of strings.
Returns whether or not this is a templated link. Determines if a href is a templated link or not.@see https://tools.ietf.org/html/rfc6570
Class Phalcon\Html\Link\LinkProvider
| Namespace | Phalcon\Html\Link | | Uses | Psr\Link\LinkInterface, Psr\Link\LinkProviderInterface | | Implements | LinkProviderInterface |
Class Phalcon\Http\Link\LinkProvider
@property LinkInterface[] links
Properties¶
Methods¶
LinkProvider constructor. Returns an iterable of LinkInterface objects.The iterable may be an array or any PHP \Traversable object. If no links are available, an empty array or \Traversable MUST be returned.
Returns an iterable of LinkInterface objects that have a specific relationship.The iterable may be an array or any PHP \Traversable object. If no links with that relationship are available, an empty array or \Traversable MUST be returned.
Returns the object hash keyClass Phalcon\Html\Link\Serializer\Header
| Namespace | Phalcon\Html\Link\Serializer | | Uses | Psr\Link\EvolvableLinkInterface | | Implements | SerializerInterface |
Class Phalcon\Http\Link\Serializer\Header
Methods¶
Serializes all the passed links to a HTTP link headerInterface Phalcon\Html\Link\Serializer\SerializerInterface
| Namespace | Phalcon\Html\Link\Serializer |
Class Phalcon\Http\Link\Serializer\SerializerInterface
Methods¶
Serializer methodClass Phalcon\Html\TagFactory
| Namespace | Phalcon\Html | | Uses | Phalcon\Escaper, Phalcon\Escaper\EscaperInterface, Phalcon\Factory\AbstractFactory | | Extends | AbstractFactory |
ServiceLocator implementation for Tag helpers