Class: dataPrimitive

Attributes:
Inherits:
Implements:

Contents:

Introduction

Meta Data

Attention
Attention: There is no meta data for this class.

Constants

There are no constants defined for this class.

Properties

Methods

Also See

Attention
Attention: There are no additional references for this class.

Class Syntax

In file D:\oblib-core\php\oblib\dataType\dataPrimitive.datatype.php between lines 45 and 125.

<?php
 
    
/**
     * 
     */

    
abstract class dataPrimitive extends data implements dataNameValuePair
    
{
        
        private    
$_mixNodeValue;
        protected 
$_arrFieldParam;
        
        public 
$slp_mixNodeValue;
        public 
$slp_arrNodeConstraint;
        
        function 
__construct ($strFieldName$mixNodeValue=NULL$arrFieldParam=Array())
        {
            
parent::__construct ($strFieldName);
            
            
$this->_arrFieldParam $arrFieldParam;
            
            if (
$mixNodeValue)
            {
                
$this->___setValue ($mixNodeValue);
            }
        }
        
        public function 
___getValue ()
        {
            return 
$this->_mixNodeValue;
        }
        
        public function 
___setValue ($mixNodeValue)
        {
            return 
$this->_mixNodeValue $mixNodeValue;
        }
        
        public function 
___getSql ()
        {
            return 
$this->_mixNodeValue;
        }
        
        public function 
___setSql ($mixNodeValue)
        {
            return 
$this->_mixNodeValue $mixNodeValue;
        }
        
        public function 
___Sterile ()
        {
            return !
$this->___hasAttribute ('error');
        }
        
        public function &
___Render (DOMNode $domBase=NULL)
        {
            
$domElement    parent::___Render ($domBase);
            
$domElement->appendChild (
                
$domElement->ownerDocument->createCDATASection ($this->_mixNodeValue)
            );
            
            return 
$domElement;
        }
        
        function 
__toString ()
        {
            return (string) 
$this->___getValue ();
        }
        
        function 
__sleep ()
        {
            
$this->slp_mixNodeValue $this->_mixNodeValue;
            
$this->slp_arrNodeConstraint $this->_arrNodeConstraint;
            
            
$arrSleep parent::__sleep ();
            
$arrSleep [] = 'slp_mixNodeValue';
            
$arrSleep [] = 'slp_arrNodeConstraint';
            
            return 
$arrSleep;
        }
        
        function 
__wakeup ()
        {
            
parent::__wakeup ();
            
            
$this->_mixNodeValue $this->slp_mixNodeValue;
            
$this->_arrNodeConstraint $this->slp_arrNodeConstraint;
        }
    }

?>