Location: PHPKode > projects > PHP Ajax Forms Framework > pajff/handlers/pajffyesno.php
<?php
/**
* Built-in Yes/No modal dialog
* 
* <p>Event handlers</p>
* 
* {@link http://sourceforge.net/projects/pajff Project home}
* 
* @package PAjFF
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @author Atanas Markov hide@address.com
* @version 0.0.2
* @copyright 2006 by Atanas Markov
*
* @subpackage pajffyesno
**/

/**
 * Yes button event
 *
 * @param pajff_session $session
 * @param pajff_event $event
 * @return mixed the result of previous form event handler for this dialog
 */
function pajffyesnoyes($session,$event){
    $session->sessionform->closeForm();
    $result = new pajff_form('',null,$session->parentID());
    $aevent= new pajff_event($result->session->sessionId(), $session->resultevent, 'yes', null);
    return $result->processEvent($aevent);
}

/**
 * No button event
 *
 * @param pajff_session $session
 * @param pajff_event $event
 * @return mixed the result of previous form event handler for this dialog
 */
function pajffyesnono($session,$event){
    $session->sessionform->closeForm();
    $result = new pajff_form('',null,$session->parentID());
    $aevent= new pajff_event($result->session->sessionId(), $session->resultevent, 'no', null);
    return $result->processEvent($aevent);
}

?>
Return current item: PHP Ajax Forms Framework