00001 <?php 00016 interface Layout 00017 { 00021 public function drawBeginning(); 00022 00026 public function drawEnd(); 00027 00032 public function drawField($field); 00033 } 00034 00041 abstract class BaseLayout implements Layout 00042 { 00048 public $hiddenFields = array(); 00049 00053 public function drawHiddenFields() 00054 { 00055 if (count($this->hiddenFields)) 00056 { 00057 foreach($this->hiddenFields as $field) 00058 { 00059 echo "\t"; 00060 $field->drawInput(); 00061 echo "\n"; 00062 } 00063 } 00064 } 00065 } 00066 ?>