ultimix
keyboard_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 
27  {
50  function compile_enter_processor( &$Settings )
51  {
52  try
53  {
54  $EnterProcessor = $Settings->get_setting( 'function' , false );
55 
56  if( $EnterProcessor === false )
57  {
58  $FormId = $Settings->get_setting( 'form_id' );
59 
60  return( "onkeyup=\"javascript:ultimix.forms.enter_processor( event , '".$FormId."' );\"" );
61  }
62  else
63  {
64  return(
65  "onkeyup=\"javascript:ultimix.forms.enter_was_pressed( event ) ? ".
66  "$EnterProcessor : void( 0 );\""
67  );
68  }
69  }
70  catch( Exception $e )
71  {
72  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
73  }
74  }
75  }
76 
77 ?>