ultimix
keyboard_markup_1_0_0 Class Reference

Public Member Functions

 compile_enter_processor (&$Settings)

Detailed Description

Class processes keyboard macro.

Author
Dodonov A.A.

Definition at line 26 of file keyboard_markup.php.

Member Function Documentation

compile_enter_processor ( $Settings)

Function compiles macro 'enter_processor'.

Parameters
$Settings- Parameters.
Returns
HTML code.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 50 of file keyboard_markup.php.

{
try
{
$EnterProcessor = $Settings->get_setting( 'function' , false );
if( $EnterProcessor === false )
{
$FormId = $Settings->get_setting( 'form_id' );
return( "onkeyup=\"javascript:ultimix.forms.enter_processor( event , '".$FormId."' );\"" );
}
else
{
return(
"onkeyup=\"javascript:ultimix.forms.enter_was_pressed( event ) ? ".
"$EnterProcessor : void( 0 );\""
);
}
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

The documentation for this class was generated from the following file: