c2ephp
|
00001 <?php 00002 00003 require_once(dirname(__FILE__).'/PrayBlock.php'); 00005 00013 class FILEBlock extends PrayBlock { 00014 00016 00027 public function FILEBlock($prayfile,$name,$content,$flags) { 00028 parent::PrayBlock($prayfile,$name,$content,$flags,PRAY_BLOCK_FILE); 00029 } 00030 00032 00034 00038 protected function CompileBlockData() { 00039 return $this->GetData(); 00040 } 00041 00043 00049 protected function DecompileBlockData() { 00050 throw new Exception('It\'s impossible to decode a FILE.'); 00051 } 00052 00054 00056 public function GetFileName() { 00057 return $this->GetName(); 00058 } 00059 00061 public function GetFileContents() { 00062 return $this->GetData(); 00063 } 00064 } 00065 ?>