PHP 클래스 Horde_Crypt_Pgp_Parse, horde

부터: 2.4.0
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_armor array Strings in armor header lines used to distinguish between the different types of PGP decryption/encryption.

공개 메소드들

메소드 설명
parse ( mixed $text ) : array Parses a message into text and PGP components.
parseToPart ( mixed $text, $charset = 'UTF-8' ) : mixed Parses an armored message into a Horde_Mime_Part object.

메소드 상세

parse() 공개 메소드

Parses a message into text and PGP components.
public parse ( mixed $text ) : array
$text mixed Either the text to parse or a Horde_Stream object.
리턴 array An array with the parsed text, returned in blocks of text corresponding to their actual order. Keys:
  - data: (array) The data for each section. Each line has been
          stripped of EOL characters.
  - type: (integer) The type of data contained in block. Valid types
          are the class ARMOR_* constants.

parseToPart() 공개 메소드

Parses an armored message into a Horde_Mime_Part object.
public parseToPart ( mixed $text, $charset = 'UTF-8' ) : mixed
$text mixed Either the text to parse or a Horde_Stream object.
리턴 mixed Either null if no PGP data was found, or a Horde_Mime_Part object. For detached signature data: the full contents of the armored text (data + sig) is contained in the SIG_RAW metadata, and the charset is contained in the SIG_CHARSET metadata, within the application/pgp-signature part.

프로퍼티 상세

$_armor 보호되어 있는 프로퍼티

Strings in armor header lines used to distinguish between the different types of PGP decryption/encryption.
protected array $_armor
리턴 array