ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

search_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 search_markup_1_0_0{
27
38 var $BlockSettings = false;
39 var $CachedMultyFS = false;
40 var $Security = false;
41 var $String = false;
42
53 var $Output = false;
54
65 function __construct()
66 {
67 try
68 {
69 $this->BlockSettings = get_package_object( 'settings::settings' , 'last' , __FILE__ );
70 $this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
71 $this->Security = get_package( 'security' , 'last' , __FILE__ );
72 $this->String = get_package( 'string' , 'last' , __FILE__ );
73 }
74 catch( Exception $e )
75 {
76 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
77 }
78 }
79
102 function compile_search_form( &$Settings )
103 {
104 try
105 {
106 list( $Speed , $Prefix , $FormId , $Action ) = $this->BlockSettings->get_settings(
107 'speed,prefix,form_id,action' , '500,common,search_form,'
108 );
109
110 $TemplateFileName = $Prefix == 'common' ? 'common_search_form.tpl' : 'custom_search_form.tpl';
111
112 $Code = $this->CachedMultyFS->get_template( __FILE__ , $TemplateFileName );
113
114 $Code = str_replace(
115 array( '{speed}' , '{prefix}' , '{form_id}' , '{action}' ) ,
116 array( $Speed , $Prefix , $FormId , $Action ) ,
117 $Code
118 );
119
120 return( $Code );
121 }
122 catch( Exception $e )
123 {
124 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
125 }
126 }
127 }
128 ?>