html
[ class tree: html ] [ index: html ] [ all elements ]

Source for file QuickTimeObject.class.php

Documentation is available at QuickTimeObject.class.php

  1. <?php
  2. /**
  3.  * For including this file you have to define the constant "CLASSPATH".
  4.  * Because every include in the framework depends on the CLASSPATH definition.
  5.  * The CLASSPATH means the relative path to the folder that contains the
  6.  * framework GilliGan.
  7.  *
  8.  * @package html
  9.  */
  10.  
  11. if!defined"CLASSPATH" ) )
  12. {
  13.   echo "<h3>You have to define the constant CLASSPATH!</h3>\n";
  14.   echo "Example: define( 'CLASSPATH', '../path/to/classes/' );\n";
  15.   exit();
  16. }
  17.  
  18. /**
  19.  * Including the basic class of all HTML-tags.
  20.  */
  21. require_onceCLASSPATH."html/ABSTSourceObject.class.php" );
  22.  
  23. /**
  24.  * @package html
  25.  *
  26.  * @version   1.0
  27.  * @since     0.9.1.5
  28.  * @author    Daniel Plücken <daniel@debakel.net>
  29.  * @license   http://www.gnu.org/copyleft/lesser.html
  30.  *             GNU Lesser General Public License
  31.  * @copyright Copyright (C) 2006 Daniel Plücken <daniel@debakel.net>
  32.  *
  33.  *  This library is free software; you can redistribute it and/or
  34.  *  modify it under the terms of the GNU Lesser General Public
  35.  *  License as published by the Free Software Foundation; either
  36.  *  version 2.1 of the License.
  37.  *
  38.  *  This library is distributed in the hope that it will be useful,
  39.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  40.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  41.  *  GNU Lesser General Public License for more details.
  42.  *
  43.  *  You should have received a copy of the GNU Lesser General
  44.  *  Public License along with this library; if not, write to the
  45.  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  46.  *  Boston, MA 02111-1307 USA
  47.  */
  48. {
  49.     /**
  50.      * Constructor.
  51.      *
  52.      * @version 1.0
  53.      * @since   0.1.0
  54.      * @author  Daniel Plücken <daniel@debakel.net>
  55.      * @access  public
  56.      * @param   string  $str_src 
  57.      * @param   integer $int_width 
  58.      * @param   integer $int_height 
  59.      * @return  void 
  60.      */
  61.     function QuickTimeObject$str_src$int_width$int_height )
  62.     {
  63.       $this->setSRC$str_src );
  64.       $this->setWidth$int_width );
  65.       $this->setHeight$int_height );
  66.     }
  67.  
  68.  
  69.  
  70.     /**
  71.      * Returns a generated string based on the attributes of this HTML-Object.
  72.      *
  73.      * @version 1.0
  74.      * @since   0.1.0
  75.      * @author  Daniel Plücken <daniel@debakel.net>
  76.      * @access  public
  77.      * @return  string 
  78.      */
  79.     function get()
  80.     {
  81.       return "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" "
  82.                     ."codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\" "
  83.                     ."width=\"".$this->width."\" "
  84.                     ."height=\"".$this->height."\""
  85.             .">\r\n"
  86.             ."  <param name=\"src\" value=\"".$this->src."\" />\r\n"
  87.             ."  <param name=\"controller\" "
  88.                      ."value=\"".$this->str_show_controller."\" />\r\n"
  89.             ."  <param name=\"autoplay\" "
  90.                      ."value=\"".$this->str_autoplay."\" />\r\n"
  91.             ."  <!--[if !IE]>-->\r\n"
  92.             ."  <object type=\"video/quicktime\" "
  93.                       ."data=\"".$this->src."\" " 
  94.                       ."width=\"".$this->width."\" "
  95.                       ."height=\"".$this->height."\""
  96.               .">\r\n"
  97.             ."    <param name=\"controller\" "
  98.                        ."value=\"".$this->str_show_controller."\" />\r\n"
  99.             ."    <param name=\"autoplay\" "
  100.                        ."value=\"".$this->str_autoplay."\" />\r\n"
  101.             ."  </object>\r\n"
  102.             ."  <!--<![endif]-->\r\n"
  103.             ."</object>\r\n";
  104.     }
  105. // End of class QuickTimeObject
  106. ?>

Documentation generated on Thu, 05 Jun 2008 19:14:49 +0200 by phpDocumentor 1.4.1