c2ephp

agents/COB/AuthorBlock.php

Go to the documentation of this file.
00001 <?php
00002 require_once(dirname(__FILE__).'/COBBlock.php');
00003 
00005 class COBAuthorBlock extends COBBlock {
00006 
00008     
00009     private $creationTime;
00010     private $version;
00011     private $revision;
00012     private $authorName;
00013     private $authorEmail;
00014     private $authorURL;
00015     private $authorComments;
00016 
00018 
00020 
00030     public function COBAuthorBlock($authorName,$authorEmail,$authorURL,$authorComments,$creationTime,$version,$revision) {
00031         parent::COBBlock(COB_BLOCK_AUTHOR);
00032         $this->authorName = $authorName;
00033         $this->authorEmail = $authorEmail;
00034         $this->authorURL = $authorURL;
00035         $this->authorComments = $authorComments;
00036         $this->creationTime = $creationTime;
00037         $this->version = $version;
00038         $this->revision = $revision;
00039     }
00040 
00042 
00045     public function GetAuthorName() {
00046         return $this->authorName;
00047     }
00048 
00050 
00053     public function GetAuthorEmail() {
00054         return $this->authorEmail;
00055     }
00056 
00058 
00061     public function GetAuthorURL() {
00062         return $this->authorURL;
00063     }
00064 
00066 
00069     public function GetAuthorComments() {
00070         return $this->authorComments;
00071     }
00072 
00074 
00077     public function GetCreationTime() {
00078         return $this->creationTime;
00079     }
00080 
00082 
00086     public function GetVersion() {
00087         return $this->version;
00088     }
00089 
00091 
00096     public function GetRevision() {
00097         return $this->revision;
00098     }
00099 
00101 
00103 
00107     public static function CreateFromReader(IReader $reader) {
00108         $creationDay = $reader->ReadInt(1);
00109         $creationMonth = $reader->ReadInt(1);
00110         $creationYear = $reader->ReadInt(2);
00111         $timestamp = mktime(0,0,0,$creationMonth,$creationDay,$creationYear);
00112         $version = $reader->ReadInt(1);
00113         $revision = $reader->ReadInt(1);
00114         $authorName = $reader->ReadCString();
00115         $authorEmail = $reader->ReadCString();
00116         $authorURL = $reader->ReadCString();
00117         $authorComments = $reader->ReadCString();
00118         
00119         return $readerData;
00120     }
00122 }
00123 ?>
 All Classes Files Functions Variables Enumerations