LanguagesPageFieldValue class

Located in file /wire/modules/LanguageSupport/LanguagesPageFieldValue.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the LanguagesPageFieldValue class also inherits all the methods and properties of: Wire.

Show class?             Show args?        

Common

NameReturnSummary 
getArray()
arrayGet array of language values stored in here 
getDefaultValue()
stringReturns the value in the default language 
getField()
Field nullGet field that value is for 
getHash()
stringGet hash of all language values stored in here 
getIterator()
ArrayObjectAllows iteration of the languages values 
getLanguageValue($languageID)
string mixedGiven a language, returns the value in that language 
getNonEmptyValue()
stringGet non-empty value in this order: current lang, default lang, other lang, failValue 
getPage()
Page nullGet page that value is for 
setField(Field $field)
(nothing)Set field that value is for 
setFromInputfield(Inputfield $inputfield)
(nothing)Grab language values from Inputfield and populate to this object 
setLanguageValue($languageID, mixed $value)
$thisSets the value for a given language 
setLanguageValues(array $values)
selfSet multiple language values at once 
setPage(Page $page)
(nothing)Set page that value is for 
setToInputfield(Inputfield $inputfield)
(nothing)Populate language values from this object to given Inputfield 
wired()
(nothing)Wired to API 

For hooks

These methods are only useful for hooking and should not be called directly.

Additional methods and properties

In addition to the methods and properties above, LanguagesPageFieldValue also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer