getImageData( $pid ); // class DB method getImageData(); foreach ($images as $image) { $this->addImage($image[src], $image[desc]); // addImage method adds image links to ViewImage->Html } return $this->html; } function addImage( $src, $desc ) { 'addHTML(); } } $Content = new Images( $pid ); ?>