ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

href_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 href_markup_1_0_0
27 {
38 var $CachedMultyFS = false;
39 var $Security = false;
40 var $String = false;
41
52 function __construct()
53 {
54 try
55 {
56 $this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
57 $this->Security = get_package( 'security' , 'last' , __FILE__ );
58 $this->String = get_package( 'string' , 'last' , __FILE__ );
59 }
60 catch( Exception $e )
61 {
62 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
63 }
64 }
65
88 function compile_href( &$Settings )
89 {
90 try
91 {
92 $Settings->set_undefined( 'waiting' , 'false' );
93 $Settings->set_undefined( 'text' , 'no_text' );
94 $Settings->set_undefined( 'raw_text' , '' );
95 $Settings->set_undefined( 'confirm_string' , 'no_text' );
96
97 $FileName = $Settings->get_setting( 'tpl' , 'std' );
98 $Code = $this->CachedMultyFS->get_template( __FILE__ , $FileName.'.tpl' );
99
100 return( $this->String->print_record( $Code , $Settings->get_raw_settings() ) );
101 }
102 catch( Exception $e )
103 {
104 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
105 }
106 }
107
130 function compile_submit( &$Settings )
131 {
132 try
133 {
134 $Settings->set_undefined( 'text' , 'submit' );
135 $Settings->set_undefined( 'waiting' , 'false' );
136 $Settings->set_undefined( 'text' , 'no_text' );
137 $Settings->set_undefined( 'raw_text' , '' );
138 $Settings->set_undefined( 'confirm_string' , 'no_text' );
139
140 $Code = $this->CachedMultyFS->get_template( __FILE__ , 'submit0.tpl' );
141
142 return( $this->String->print_record( $Code , $Settings->get_raw_settings() ) );
143 }
144 catch( Exception $e )
145 {
146 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
147 }
148 }
149 }
150
151 ?>