Location: PHPKode > scripts > Pipho - iPhone optimized image gallery > pipho-iphone-optimized-image-gallery/library/Pipho/Image.php
<?php
/******************************************************************************
 *	PIPHO, version 1.01.00
 *	(c) 2009 jaipho.com
 *
 *	PIPHO is freely used under the terms of an FreeBSD license.
 *	For details, see the PIPHO web site: http://www.jaipho.com/pipho/
 ******************************************************************************/

class Pipho_Image
{
	public $index;
	public $urlThumb;
	public $urlSlide;
	public $urlFull;
	public $title;
	public $description;
	
	public function __construct( $filename)
	{
		$this->urlFull		=	$filename;
	}
	
	public function getJsReadImage()
	{
		// dao.ReadImage( 0, 'test-image-1.jpg', 'test-image-1-thumb.jpg', '', '');
		$arguments		=	array();
		$arguments[]	=	$this->index;	
		$arguments[]	=	"'".$this->urlSlide."'";	
		$arguments[]	=	"'".$this->urlThumb."'";	
		$arguments[]	=	"'".$this->title."'";	
		$arguments[]	=	"'".$this->description."'";

		return '
			dao.ReadImage( '.join(',', $arguments).');';
	}
}
?>
Return current item: Pipho - iPhone optimized image gallery