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

Source for file Script.php

Documentation is available at Script.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4.  
  5. /*
  6.  * Created on 19. Jan. 2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  7.  *  */
  8.  
  9. /**
  10.  * Script class file.
  11.  * 
  12.  * PHP versions 5
  13.  *   
  14.  * LICENSE:
  15.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  16.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  17.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  18.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  19.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  20.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  23.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  25.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26.  *
  27.  * This software consists of voluntary contributions made by many individuals
  28.  * and is licensed under the GPL. For more information please see
  29.  * <http://opendocumentphp.org>.
  30.  * 
  31.  * $Id: Script.php 250 2007-07-31 08:52:06Z nmarkgraf $
  32.  * 
  33.  * @category    File Formats
  34.  * @package     OpenDocumentPHP
  35.  * @subpackage  content_script
  36.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  37.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  38.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  39.  * @version     SVN: $Id: Script.php 250 2007-07-31 08:52:06Z nmarkgraf $
  40.  * @link        http://opendocumentphp.org
  41.  * @since       0.5.0 - 08. Feb. 2007
  42.  */
  43.  
  44. /**
  45.  * 
  46.  */
  47. require_once 'OpenDocumentPHP/util/ODPElement.php';
  48.  
  49. /**
  50.  * Script class.
  51.  *
  52.  * THIS CLASS IS JUST A STUBS. Please feel free to implement at least
  53.  * the 'abstract' methods in this class.
  54.  * 
  55.  * @category    File Formats
  56.  * @package     OpenDocumentPHP
  57.  * @subpackage  content_script
  58.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  59.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  60.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  61.  * @version     Release: @package_version@
  62.  * @link        http://opendocumentphp.org
  63.  * @since       0.5.0 - 08. Feb. 2007
  64.  */
  65. class Script extends ODPElement {
  66.  
  67.     /**
  68.      * Constructor method.
  69.      * 
  70.      * @since         0.5.0 - 08. Feb. 2007
  71.      */
  72.     function __construct($elem=null$content NULL$language NULL
  73.     {  
  74.         if (is_null($elem)) {
  75.             parent::__construct('office:script'''self::OFFICE);
  76.         else {
  77.             parent::__construct($elem);         
  78.         }    
  79.         if (is_string($content)) {
  80.             $this->setContent($content);
  81.         }
  82.         if (is_string($language)) {
  83.             $this->setLanguage($language);
  84.         }
  85.     }
  86.     
  87.     /**
  88.      * 
  89.      * @access         public
  90.      * @since         0.5.0 - 08. Feb. 2007
  91.      */
  92.     function setLanguage(string $language
  93.     {
  94.         $this->putAttributeNS(self::SCRIPT'script:language'$language);        
  95.     }
  96.     
  97.     /**
  98.      * 
  99.      * @access         public
  100.      * @since         0.5.0 - 08. Feb. 2007
  101.      */
  102.     function getLanguage(
  103.     {
  104.         return $this->getAttributeNS(self::SCRIPT'language');
  105.     }
  106.     
  107.     /**
  108.      * 
  109.      * @access         public
  110.      * @since         0.5.0 - 08. Feb. 2007
  111.      */
  112.     function setContent(string $content
  113.     {
  114.         if (is_string($content)) {
  115.             // *** FIX ME ***            
  116.         else {
  117.             // *** FIX ME ***            
  118.         }
  119.     }
  120.     
  121.     /**
  122.      * 
  123.      * @access         public
  124.      * @since         0.5.0 - 08. Feb. 2007
  125.      */
  126.     function getContent(
  127.     {
  128.         $ret null;
  129.         // *** FIX ME ***        
  130.         return $ret;
  131.     }
  132. }
  133. ?>

Documentation generated on Wed, 18 Jun 2008 06:31:44 +0200 by phpDocumentor 1.3.2