Default packet constructor can take data
This commit is contained in:
parent
6ac274b8ec
commit
36fba1596d
@ -292,8 +292,9 @@ class OpenPGP_Packet {
|
|||||||
return array($tag, $head_length, $data_length);
|
return array($tag, $head_length, $data_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
function __construct() {
|
function __construct($data=NULL) {
|
||||||
$this->tag = array_search(substr(substr(get_class($this), 8), 0, -6), self::$tags);
|
$this->tag = array_search(substr(substr(get_class($this), 8), 0, -6), self::$tags);
|
||||||
|
$this->data = $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
function read() {
|
function read() {
|
||||||
|
Loading…
Reference in New Issue
Block a user