X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/horde/framework/Horde/Mime/Headers
home
/
cbholdings
/
pasukulu
/
lib
/
horde
/
framework
/
Horde
/
Mime
/
Headers
/
📁
..
📄
Addresses.php
(4.62 KB)
📄
AddressesMulti.php
(2.57 KB)
📄
ContentDescription.php
(1.2 KB)
📄
ContentId.php
(1.58 KB)
📄
ContentLanguage.php
(1.94 KB)
📁
ContentParam
📄
ContentParam.php
(12.82 KB)
📄
ContentTransferEncoding.php
(2.18 KB)
📄
Date.php
(1.8 KB)
📄
Deprecated.php
(7.15 KB)
📁
Element
📄
Element.php
(4.45 KB)
📁
Extension
📄
Identification.php
(1.16 KB)
📄
MessageId.php
(1.47 KB)
📄
Mime.php
(1.22 KB)
📄
MimeVersion.php
(1.32 KB)
📄
Received.php
(983 B)
📄
Subject.php
(1.11 KB)
📄
UserAgent.php
(1.27 KB)
Editing: ContentLanguage.php
<?php /** * Copyright 2015-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @category Horde * @copyright 2015-2017 Horde LLC * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Mime */ /** * This class represents the Content-Language header value (RFC 3282). * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @copyright 2015-2017 Horde LLC * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Mime * @since 2.8.0 * * @property-read array $langs The list of languages. */ class Horde_Mime_Headers_ContentLanguage extends Horde_Mime_Headers_Element_Single implements Horde_Mime_Headers_Extension_Mime { /** */ public function __construct($name, $value) { parent::__construct('Content-Language', $value); } /** */ public function __get($name) { switch ($name) { case 'full_value': case 'value': case 'value_single': return implode(',', $this->_values); case 'langs': return $this->_values; } return parent::__get($name); } /** * @param mixed $value Either a single language or an array of languages. */ protected function _setValue($value) { if ($value instanceof Horde_Mime_Headers_Element) { $value = $value->value; } if (!is_array($value)) { $value = array_map('trim', explode(',', $value)); } $this->_values = array(); foreach ($value as $val) { $this->_values[] = Horde_String::lower( $this->_sanityCheck(Horde_Mime::decode($val)) ); } } /** */ public static function getHandles() { return array( 'content-language' ); } }
Upload File
Create Folder