ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

yandex_markup.php
Go to the documentation of this file.
1 <?php
2
3 /*
4 * This source code is a part of the Ultimix Project.
5 * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6 * it's own license wich could be found from the corresponding files or sources.
7 * This source code is provided "as is" without any warranties or garanties.
8 *
9 * Have a nice day!
10 *
11 * @url http://ultimix.sorceforge.net
12 *
13 * @author Alexey "gdever" Dodonov
14 */
15
26 class yandex_markup_1_0_0{
27
38 var $CachedMultyFS = false;
39
50 var $Dialogs = array();
51
66 function __construct()
67 {
68 try
69 {
70 $this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
71 }
72 catch( Exception $e )
73 {
74 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
75 }
76 }
103 function process_regions( $Str , $Changed )
104 {
105 try
106 {
107 if( strpos( $Str , '{regions}' ) !== false )
108 {
109 $Str = str_replace(
110 '{regions}' , $this->CachedMultyFS->get_template( __FILE__ , 'regions.tpl' ) , $Str
111 );
112 $Changed = true;
113 }
114
115 return( array( $Str , $Changed ) );
116 }
117 catch( Exception $e )
118 {
119 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
120 }
121 }
122
153 function process_string( $Options , $Str , &$Changed )
154 {
155 try
156 {
157 list( $Str , $Changed ) = $this->process_regions( $Str , $Changed );
158
159 return( $Str );
160 }
161 catch( Exception $e )
162 {
163 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
164 }
165 }
166 }
167
168 ?>