Source for file MovieObject.class.php
Documentation is available at MovieObject.class.php
* For including this file you have to define the constant "CLASSPATH".
* Because every include in the framework depends on the CLASSPATH definition.
* The CLASSPATH means the relative path to the folder that contains the
echo "<h3>You have to define the constant CLASSPATH!</h3>\n";
echo "Example: define( 'CLASSPATH', '../path/to/classes/' );\n";
* Including the basic class of all HTML-tags.
require_once( CLASSPATH. "html/ABSTSourceObject.class.php" );
* Including various regular expressions.
include_once( CLASSPATH. "RegExpConstants.inc.php" );
* @author Daniel Plücken <daniel@debakel.net>
* @license http://www.gnu.org/copyleft/lesser.html
* GNU Lesser General Public License
* @copyright Copyright (C) 2006 Daniel Plücken <daniel@debakel.net>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
* @var string $str_show_controller
* @var string $str_autoplay
* The Constructor let the script die, cause this is an abstract class!
* @author Daniel Plücken <daniel@debakel.net>
* Returns a generated string based on the attributes of this HTML-Object.
* @author Daniel Plücken <daniel@debakel.net>
die( "You have to set the mime type first!" );
return "<object type=\"". $this->mime_type. "\" "
. "data=\"". $this->src. "\" "
. "width=\"". $this->width. "\" "
. "height=\"". $this->height. "\""
? " classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\""
. " <param name=\"src\" value=\"". $this->src. "\" />\r\n"
. " <param name=\"controller\" "
. " <param name=\"autoplay\" "
? "<embed src=\"". $this->src. "\" "
. "width=\"". $this->width. "\" "
. "height=\"". $this->height. "\" "
. "pluginspage=\"http://www.apple.com/quicktime/download/indext.html\" "
. "target=\"myself\"></embed>\r\n"
} // End of class MovieObject
|