Inheritance diagram for ExtractingElementCreator:

I guess that nobody have understood previous sentence.
Definition at line 101 of file xmlutils.php.
Public Member Functions | |
| __construct ($regex, $name, $attrs=NULL) | |
| create_element ($doc, $content) | |
| Creates the XML element. | |
Protected Attributes | |
| $regex | |
| Regular expression used for extracting. | |
|
||||||||||||||||
|
Definition at line 110 of file xmlutils.php. References $regex. 00110 {
00111 $this->regex = $regex;
00112 parent::__construct($name, $attrs);
00113 }
|
|
||||||||||||
|
Creates the XML element.
Reimplemented from ElementCreator. Definition at line 124 of file xmlutils.php. 00124 {
00125 if (preg_match($this->regex, $content, $matches)):
00126 return parent::create_element($doc, $matches[1]);
00127 endif;
00128 throw new Exception(
00129 sprintf(
00130 "ExtractingElementCreator::create_element() error: Nothing matched! Regex: >%s< String: >%s<",
00131 $this->regex, $content
00132 )
00133 );
00134 }
|
|
|
Regular expression used for extracting.
Definition at line 104 of file xmlutils.php. Referenced by __construct(). |
1.4.2