This field type represents keywords.
Name | Internal name | Expected input |
---|
Keyword | ezkeyword | string[]|string |
Table of contents:
Description
This FieldType stores single or several keywords as comma separated keywords as a string or array of string keywords.
Type | Example |
---|
string | "documentation" |
string | "php, eZ Publish, html5"
|
string[] | array( "eZ Systems", "Enterprise", "User Experience Management" ) |
Value object
Properties
The Value class of this field type contains the following properties:
Property | Type | Description |
---|
$value | string[]|string
| This property will be used to store multiple comma separated keywords, or single keywords, provided as a string. |
Code Block |
---|
language | php |
---|
title | Value object content example |
---|
|
$keyword->value = "php, css3, html5, eZ Publish" |
Constructor
The Keyword
\Value
constructor will initialize a new Value object with the value provided. It expects a string.
Code Block |
---|
language | php |
---|
title | Constructor example |
---|
|
// Instantiates a Keyword Value object
$keywordValue = new Keyword\Value( "php5, css3, html5, solr, memcached" ); |