File_Bittorrent
[ class tree: File_Bittorrent ] [ index: File_Bittorrent ] [ all elements ]

Class: File_Bittorrent_Decode

Source Location: /File_Bittorrent-0.1.3/File/Bittorrent/Decode.php

Class Overview


Decode .torrent files


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 61]
Decode .torrent files


[ Top ]


Class Variables

$announce =  ''

[line 101]

  • Var: tracker (the tracker the torrent has been received from)

Type:   string


[ Top ]

$announce_list = array()

[line 106]

  • Var: List of known trackers for the torrent

Type:   array


[ Top ]

$comment =  ''

[line 76]

  • Var: Comment

Type:   string


[ Top ]

$created_by =  ''

[line 96]

  • Var: Signature of the software which created the torrent

Type:   string


[ Top ]

$date =  0

[line 81]

  • Var: Creation date as unix timestamp

Type:   int


[ Top ]

$filename =  ''

[line 71]

  • Var: Filename of the torrent

Type:   string


[ Top ]

$files = array()

[line 86]

  • Var: Files in the torrent

Type:   array


[ Top ]

$name =  ''

[line 66]

  • Var: Name of the torrent

Type:   string


[ Top ]

$size =  0

[line 91]

  • Var: Size of of the full torrent (after download)

Type:   int


[ Top ]



Method Detail

decode   [line 126]

mixed decode( string $str)

Decode a Bencoded string

Parameters:

string   $str   — 

[ Top ]

decodeFile   [line 139]

mixed decodeFile( string $file)

Decode .torrent file and accumulate information
  • Return: Returns an arrayon success or false on error

Parameters:

string   $file   —  Filename

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:22:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.