* @copyright 2008 Digg.com, Inc. * @license http://tinyurl.com/42zef New BSD License * @version SVN: @version@ * @link http://code.google.com/p/digg * @link http://oembed.com */ require_once 'Services/oEmbed/Object/Common.php'; /** * Photo object for {@link Services_oEmbed} * * @category Services * @package Services_oEmbed * @author Joe Stump * @copyright 2008 Digg.com, Inc. * @license http://tinyurl.com/42zef New BSD License * @version Release: @version@ * @link http://code.google.com/p/digg * @link http://oembed.com */ class Services_oEmbed_Object_Photo extends Services_oEmbed_Object_Common { /** * Required fields for photo objects * * @var array $required Required fields */ protected $required = array( 'url', 'width', 'height' ); /** * Output a valid HTML tag for image * * @return string HTML tag for Photo */ public function __toString() { $img = 'title)) { $img .= ' alt="' . $this->title . '"'; } return $img . ' />'; } } ?>