1<?php 2 3namespace Sabre\VObject\Property\VCard; 4 5use 6 Sabre\VObject\Property; 7 8/** 9 * LanguageTag property. 10 * 11 * This object represents LANGUAGE-TAG values as used in vCards. 12 * 13 * @copyright Copyright (C) fruux GmbH (https://fruux.com/) 14 * @author Evert Pot (http://evertpot.com/) 15 * @license http://sabre.io/license/ Modified BSD License 16 */ 17class LanguageTag extends Property { 18 19 /** 20 * Sets a raw value coming from a mimedir (iCalendar/vCard) file. 21 * 22 * This has been 'unfolded', so only 1 line will be passed. Unescaping is 23 * not yet done, but parameters are not included. 24 * 25 * @param string $val 26 * 27 * @return void 28 */ 29 function setRawMimeDirValue($val) { 30 31 $this->setValue($val); 32 33 } 34 35 /** 36 * Returns a raw mime-dir representation of the value. 37 * 38 * @return string 39 */ 40 function getRawMimeDirValue() { 41 42 return $this->getValue(); 43 44 } 45 46 /** 47 * Returns the type of value. 48 * 49 * This corresponds to the VALUE= parameter. Every property also has a 50 * 'default' valueType. 51 * 52 * @return string 53 */ 54 function getValueType() { 55 56 return 'LANGUAGE-TAG'; 57 58 } 59 60} 61