4 * Photo object for {@link Services_oEmbed}
8 * Copyright (c) 2008, Digg.com, Inc.
10 * All rights reserved.
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions are met:
15 * - Redistributions of source code must retain the above copyright notice,
16 * this list of conditions and the following disclaimer.
17 * - Redistributions in binary form must reproduce the above copyright notice,
18 * this list of conditions and the following disclaimer in the documentation
19 * and/or other materials provided with the distribution.
20 * - Neither the name of Digg.com, Inc. nor the names of its contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
37 * @package Services_oEmbed
38 * @author Joe Stump <joe@joestump.net>
39 * @copyright 2008 Digg.com, Inc.
40 * @license http://tinyurl.com/42zef New BSD License
41 * @version SVN: @version@
42 * @link http://code.google.com/p/digg
43 * @link http://oembed.com
46 require_once 'Services/oEmbed/Object/Common.php';
49 * Photo object for {@link Services_oEmbed}
52 * @package Services_oEmbed
53 * @author Joe Stump <joe@joestump.net>
54 * @copyright 2008 Digg.com, Inc.
55 * @license http://tinyurl.com/42zef New BSD License
56 * @version Release: @version@
57 * @link http://code.google.com/p/digg
58 * @link http://oembed.com
60 class Services_oEmbed_Object_Rich extends Services_oEmbed_Object_Common
63 * Required fields for rich objects
65 * @var array $required Required fields
67 protected $required = array(
68 'html', 'width', 'height'
72 * Output a the HTML tag for rich object
74 * @return string HTML for rich object
76 public function __toString()