PHP Class Swiftriver\Core\ObjectModel\LanguageSpecificText

Author: mg[at]swiftly[dot]org
Show file Open project: ushahidi/Swiftriver-2011

Public Properties

Property Type Description
$languageCode string The ISO 639-1 two letter language code ref: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
$text string[] A none-associative array of text in the language denoted by $languageCode
$title string The title in the language denoted by $languageCode

Public Methods

Method Description
__construct ( string $languageCode, string $title, string[] $text ) Constructor for LanguageSpecificText objetc

Method Details

__construct() public method

Constructor for LanguageSpecificText objetc
public __construct ( string $languageCode, string $title, string[] $text )
$languageCode string the ISO 639-1 language code
$title string the title of the content
$text string[] the none-assositave array of the content text

Property Details

$languageCode public property

The ISO 639-1 two letter language code ref: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
public string $languageCode
return string

$text public property

A none-associative array of text in the language denoted by $languageCode
public string[] $text
return string[]

$title public property

The title in the language denoted by $languageCode
public string $title
return string