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

Source for file Script.php

Documentation is available at Script.php

  1. <?php
  2. /*
  3.  * Created on 19.01.2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  4.  *
  5.  * PHP versions 5.2 or better.
  6.  *
  7.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  8.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  9.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  10.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  11.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  12.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  13.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  14.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  15.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  16.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  17.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  18.  *
  19.  * This software consists of voluntary contributions made by many individuals
  20.  * and is licensed under the GPL. For more information please see
  21.  * <http://opendocumentphp.org>.
  22.  * 
  23.  * $Id: Script.php 158 2007-03-16 09:54:23Z nmarkgraf $
  24.  */
  25. require_once 'OpenDocumentPHP/util/Fragment.php';
  26. /**
  27.  * Script class.
  28.  *  
  29.  * @author         Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  30.  * @copyright     Copyright in 2006, 2007 by The OpenDocumentPHP Team
  31.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  32.  * @version        $Revision: 158 $
  33.  * @package        OpenDocumentPHP
  34.  * @subpackage  content_script
  35.  * @since         0.5.0 - 08.02.2007
  36.  */
  37. class Script extends Fragment {
  38.     /**
  39.      * Constructor method.
  40.      * 
  41.      * @since         0.5.0 - 08.02.2007
  42.      */
  43.     function __construct($domFragment$content NULL$language NULL{
  44.         parent :: __construct($domFragment);
  45.         $this->root = $this->domFragment->createElementNS(self :: OFFICE'office:script');
  46.         if (is_string($content)) {
  47.             $this->setContent($content);
  48.         }
  49.         if (is_string($language)) {
  50.             $this->setLanguage($language);
  51.         }
  52.     }
  53.     /**
  54.      * 
  55.      * @access         public
  56.      * @since         0.5.0 - 08.02.2007
  57.      */
  58.     function setLanguage(string $language{
  59.         // *** FIX ME ***        
  60.     }
  61.     /**
  62.      * 
  63.      * @access         public
  64.      * @since         0.5.0 - 08.02.2007
  65.      */
  66.     function getLanguage({
  67.         $ret null;
  68.         // *** FIX ME ***
  69.         return $ret;
  70.     }
  71.     /**
  72.      * 
  73.      * @access         public
  74.      * @since         0.5.0 - 08.02.2007
  75.      */
  76.     function setContent(string $content{
  77.         if (is_string($content)) {
  78.             // *** FIX ME ***            
  79.         else {
  80.             // *** FIX ME ***            
  81.         }
  82.     }
  83.     /**
  84.      * 
  85.      * @access         public
  86.      * @since         0.5.0 - 08.02.2007
  87.      */
  88.     function getContent({
  89.         $ret null;
  90.         // *** FIX ME ***        
  91.         return $ret;
  92.     }
  93. }
  94. ?>

Documentation generated on Tue, 12 Jun 2007 10:00:37 +0200 by phpDocumentor 1.3.2