Location: PHPKode > scripts > UI Template > ui-template/frea/Template/Dom/Node/Text.php
<?php
/**
 * template dom node text class
 *
 * @package frea-framework
 * @subpackage Template
 * 
 * @copyright 2009 frea-framework
 * @author Dawid Kraczkowski hide@address.com
 * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
 */
class Template_Dom_Node_Text extends Template_Dom_Node
{
	/**
	 * contents of text node
	 *
	 * @var string
	 */
	protected $value;
	
	/**
	 * constructor
	 *
	 * @param string $nodeName
	 * @param string $nodeValue
	 */
	public function __construct()
	{
		$this->nodeType = Template_Dom_Node::TEXT_NODE ;
		$this->nodeName = "textNode";
	}
	/**
	 * return value of attribute
	 *
	 * @return string
	 */
	public function value($value = null)
	{
		if($value)
			$this->value = $value;
		else
			return $this->value;
	}
	/**
	 * return value of attribute
	 *
	 * @return string
	 */
	public function __toString()
	{
		return $this->value;
	}

}
Return current item: UI Template