Source for file Text.php

Documentation is available at Text.php

  1. <?php
  2.  
  3. /**
  4.  * Concrete text token class.
  5.  * 
  6.  * Text tokens comprise of regular parsed character data (PCDATA) and raw
  7.  * character data (from the CDATA sections). Internally, their
  8.  * data is parsed with all entities expanded. Surprisingly, the text token
  9.  * does have a "tag name" called #PCDATA, which is how the DTD represents it
  10.  * in permissible child nodes.
  11.  */
  12. {
  13.     
  14.     public $name = '#PCDATA'/**< PCDATA tag name compatible with DTD. */
  15.     public $data/**< Parsed character data of text. */
  16.     public $is_whitespace/**< Bool indicating if node is whitespace. */
  17.     
  18.     /**
  19.      * Constructor, accepts data and determines if it is whitespace.
  20.      * 
  21.      * @param $data String parsed character data.
  22.      */
  23.     public function __construct($data$line null{
  24.         $this->data = $data;
  25.         $this->is_whitespace = ctype_space($data);
  26.         $this->line = $line;
  27.     }
  28.     
  29. }

Documentation generated on Thu, 19 Jun 2008 18:50:24 -0400 by phpDocumentor 1.4.2