mirror of https://github.com/BOINC/boinc.git
29 lines
692 B
PHP
29 lines
692 B
PHP
|
<?php
|
||
|
/**
|
||
|
* This class is used as part of the Bittorrent .torrent creator and tracker system.
|
||
|
* A BElement is used to contain BEncoded elements inside other BEncodings (like lists or dictonaries)
|
||
|
*/
|
||
|
|
||
|
$cvs_version_tracker[]="\$Id: belement.inc 12611 2007-05-08 08:25:13Z jbk $"; //Generated automatically - do not edit
|
||
|
|
||
|
class BElement {
|
||
|
private $encodedText;
|
||
|
|
||
|
/**
|
||
|
* Constructs a new BElement with the $bEncoding as BEncoded
|
||
|
* value to be used
|
||
|
*/
|
||
|
public function __construct($bEncoding){
|
||
|
$this->encodedText = $bEncoding;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Returns a BEncoded value
|
||
|
*/
|
||
|
public function toEncoded(){
|
||
|
return $this->encodedText;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|