소스 검색

extra function for getting the disposition properties

stekkel 23 년 전
부모
커밋
9ebc41acf1
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      class/mime.class.php

+ 12 - 0
class/mime.class.php

@@ -848,6 +848,7 @@ class message
 	         /* multipart properties */
 		 $i++;
 		 $res = $this->parseProperties($read,$i);
+
 		 $arg_a[] = $res[0];
 		 $i = $res[1];
 		 $arg_no++;
@@ -1669,6 +1670,17 @@ class disposition
        $this->name = $name;
        $this->properties = array();
     }
+
+    function getProperty($par)
+    {
+        $value = strtolower($par);
+        if (isset($this->properties[$par]))
+	{
+           return $this->properties[$par];
+        }
+        return '';
+    }
+
 }
 
 class language