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

Source for file UserFieldDecl.php

Documentation is available at UserFieldDecl.php

  1. <?php
  2. /*
  3.  * Created on 26.02.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: UserFieldDecl.php 136 2007-03-02 18:02:29Z nmarkgraf $
  24.  */
  25. require_once 'OpenDocumentPHP/util/ElementFragment.php';
  26. /**
  27.  * UserFieldDecl class.
  28.  * 
  29.  * 
  30.  *  
  31.  * @author         Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  32.  * @copyright     Copyright in 2006, 2007 by The OpenDocumentPHP Team
  33.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  34.  * @version        $Revision: 136 $
  35.  * @package        OpenDocumentPHP
  36.  * @subpackage  content_body_text
  37.  * @since         0.5.2 - 26.02.2007
  38.  */
  39. class UserFieldDecl extends ElementFragment {
  40.     /**
  41.      * Set element root to "text:user-field-decl"
  42.      * 
  43.      * @access         protected
  44.      * @since         0.5.2 - 26.02.2007
  45.      */
  46.     function __setRoot({
  47.         $this->root = $this->domFragment->createElementNS(self :: TEXT'text:user-field-decl');
  48.     }
  49.     /**
  50.      * 
  51.      * @access         public
  52.      * @since         0.5.2 - 26.02.2007
  53.      */
  54.     function setValueType($type{        
  55.         $this->setAttributeNS(self :: OFFICE'office:value-type'$type);
  56.     }
  57.     /**
  58.      * 
  59.      * @access         public
  60.      * @since         0.5.2 - 26.02.2007
  61.      */
  62.     function getValueType({    
  63.         return $this->getAttributeNS(self :: OFFICE'value-type');
  64.     }
  65.     /**
  66.      * 
  67.      * @access         public
  68.      * @since         0.5.2 - 26.02.2007
  69.      */
  70.     function setStringValue($value{
  71.         $this->setValueType('string');
  72.         $this->setAttributeNS(self :: OFFICE'office:string-value'$value);        
  73.     }
  74.     /**
  75.      * 
  76.      * @access         public
  77.      * @since         0.5.2 - 26.02.2007
  78.      */
  79.     function getStringValue({
  80.         return $this->getAttributeNS(self :: OFFICE'string-value');
  81.     }
  82.     /**
  83.      * 
  84.      * @access         public
  85.      * @since         0.5.2 - 26.02.2007
  86.      */
  87.     function setName($name{
  88.         $this->setAttributeNS(self :: TEXT'text:name'$name);
  89.     }
  90.     /**
  91.      * 
  92.      * @access         public
  93.      * @since         0.5.2 - 26.02.2007
  94.      */
  95.     function getName({
  96.         return $this->getAttributeNS(self :: TEXT'name');
  97.     }
  98. }
  99. ?>

Documentation generated on Tue, 12 Jun 2007 10:01:02 +0200 by phpDocumentor 1.3.2