steffen: server/kolab-horde-framework/kolab-horde-framework/UI/UI/VarRenderer html.php, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Fri Oct 14 16:33:16 CEST 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/UI/UI/VarRenderer
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/UI/UI/VarRenderer

Added Files:
	html.php 
Log Message:
Separated Horde Framework from kolab-resource-handlers

--- NEW FILE: html.php ---
<?php
/**
 * The Horde_UI_VarRenderer_html:: class renders variables to HTML.
 *
 * $Horde: framework/UI/UI/VarRenderer/html.php,v 1.43 2004/05/26 03:10:46 chuck Exp $
 *
 * Copyright 2003-2004 Jason M. Felice <jfelice at cronosys.com>
 *
 * See the enclosed file LICENSE for license information (LGPL).
 *
 * @version $Revision: 1.1 $
 * @since   Horde_UI 0.0.1
 * @package Horde_UI
 */
class Horde_UI_VarRenderer_html extends Horde_UI_VarRenderer {

    var $_onLoadJS = array();

    function _renderVarInputDefault(&$form, &$var, &$vars)
[...1058 lines suppressed...]
        return $actions;
    }

    function _addOnLoadJavascript($script)
    {
        $this->_onLoadJS[] = $script;
    }

    function renderEnd()
    {
        if (count($this->_onLoadJS)) {
            return "<script language=\"JavaScript\" type=\"text/javascript\">" .
                "<!--\n" .  implode("\n", $this->_onLoadJS) . "\n// -->\n" .
                "</script>";
        } else {
            return '';
        }
    }

}





More information about the commits mailing list