Skip to the content
Documentation

Url Field Type: comparison of v.1 vs v.2

No ratings yet

Versions Compared

Old Version 1

changes.mady.by.user Dominika Kurek

Saved on Apr 20, 2016

compared with

New Version 2

changes.mady.by.user Dominika Kurek

Saved on Apr 29, 2016

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Comment: layout change

This Field Type represents a hyperlink. It is formed by the combination of a link and the respective text.

Name Internal name Expected input
Url ezurl string

Table of contents:

Table of Contents
minLevel 2

Description

This Field Type makes possible to store and retrieve a url. It is formed by the combination of a link and the respective text.

Input expectations

Type Example
string
"http://www.ez.no", "eZ Systems"

Value object

Properties

The Value class of this field type contains the following properties:

Property Type Description
$link string This property will be used to store the link provided to the value of this Field Type.
$text string This property will be used to store the text to represent the stored link provided to the value of this Field Type.
Code Block
language php
title Value object content example
$url->link = "http://www.ez.no";
$url->text = "eZ Systems";

Constructor

The Url\Value constructor will initialize a new Value object with the value provided. It expects two comma-separated strings, corresponding to the link and text.

Code Block
language php
title Constructor example
// Instantiates an Url Value object
$UrlValue = new Url\Value( "http://www.ez.no", "eZ Systems" );

Validation

This Field Type does not perform validation.

Settings

This Field Type does not have settings.

 

 

Comments

Add a comment

Comments are read by a moderator before they appear.