git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14618
7612ce4b-ef26-0410-bec9-
ea0150e637f0
var $properties = '';
/**
var $properties = '';
/**
- * Constructor function.
+ * Constructor (PHP5 style, required in some future version of PHP)
* Prepared type0 and type1 properties
* @param string $type content type string without auxiliary information
*/
* Prepared type0 and type1 properties
* @param string $type content type string without auxiliary information
*/
- function ContentType($type) {
+ function __construct($type) {
$type = strtolower($type);
$pos = strpos($type, '/');
if ($pos > 0) {
$type = strtolower($type);
$pos = strpos($type, '/');
if ($pos > 0) {
}
$this->properties = array();
}
}
$this->properties = array();
}
+
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ * Prepared type0 and type1 properties
+ * @param string $type content type string without auxiliary information
+ */
+ function ContentType($type) {
+ self::__construct($name);
+ }