XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Encoding.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2004-2009 Chris Corbyn
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
11 //@require 'Swift/DependencyContainer.php';
12 
21 {
22 
28  public static function get7BitEncoding()
29  {
30  return self::_lookup('mime.7bitcontentencoder');
31  }
32 
38  public static function get8BitEncoding()
39  {
40  return self::_lookup('mime.8bitcontentencoder');
41  }
42 
48  public static function getQpEncoding()
49  {
50  return self::_lookup('mime.qpcontentencoder');
51  }
52 
58  public static function getBase64Encoding()
59  {
60  return self::_lookup('mime.base64contentencoder');
61  }
62 
63  // -- Private Static Methods
64 
65  private static function _lookup($key)
66  {
67  return Swift_DependencyContainer::getInstance()->lookup($key);
68  }
69 
70 }