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

Source for file UserFieldGet.php

Documentation is available at UserFieldGet.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4.  
  5. /*
  6.  * Created on 26. Feb. 2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  7.  */
  8.  
  9. /**
  10.  * UserFieldGet 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: UserFieldGet.php 256 2007-08-01 14:16:10Z nmarkgraf $
  32.  * 
  33.  * @category    File Formats
  34.  * @package     OpenDocumentPHP
  35.  * @subpackage  content_body_text
  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: UserFieldGet.php 256 2007-08-01 14:16:10Z nmarkgraf $
  40.  * @link        http://opendocumentphp.org
  41.  * @since       0.5.2 - 26. Feb. 2007
  42.  */
  43.  
  44. /**
  45.  * 
  46.  */
  47. require_once 'OpenDocumentPHP/util/ODPElement.php';
  48.  
  49. /**
  50.  * UserFieldGet class.
  51.  *  
  52.  * @category    File Formats
  53.  * @package     OpenDocumentPHP
  54.  * @subpackage  content_body_text
  55.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  56.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  57.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  58.  * @version     Release: @package_version@
  59.  * @link        http://opendocumentphp.org
  60.  * @since         0.5.2 - 26. Feb. 2007
  61.  */
  62. class UserFieldGet extends ODPElement 
  63. {
  64.     /**
  65.      * Constructor method.
  66.      * 
  67.      * @since       0.5.2 - 26. Feb. 2007
  68.      */
  69.     function __construct($elem=null$value=null$namespace=null
  70.     {         
  71.         if (is_null($elem)) {
  72.            parent::__construct('text:user-field-get'''self::TEXT);
  73.         else {
  74.             if ($elem instanceof DOMElement{
  75.                 parent::__construct($elem);
  76.             else {
  77.                 parent::__construct($elem$value$namespace);         
  78.             }            
  79.         }   
  80.     }
  81.  
  82.     /**
  83.      * Update current node value
  84.      * 
  85.      * @access      public
  86.      * @since       0.5.2 - 26. Feb. 2007
  87.      */
  88.     function updateValue($value{
  89.         $this->getElement()->nodeValue $value;
  90.     }
  91. }
  92. ?>

Documentation generated on Wed, 18 Jun 2008 06:34:11 +0200 by phpDocumentor 1.3.2