<commit_before><?php
/*"******************************************************************************************************
*   (c) 2007-2013 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*	$Id$                               *
********************************************************************************************************/

/**
 * @author <EMAIL>
 * @since 4.3
 * @package module_formgenerator
 */
class class_formentry_button extends class_formentry_base implements interface_formentry {

    private $strEventhandler = "";

    public function __construct($strFormName, $strSourceProperty = "", $objSourceObject = null) {
        parent::__construct($strFormName, $strSourceProperty, $objSourceObject);

        //set the default validator
        $this->setObjValidator(new class_dummy_validator());
    }

    /**
     * Renders the field itself.
     * In most cases, based on the current toolkit.
     *
     * @return string
     */
    public function renderField() {
        $objToolkit = class_carrier::getInstance()->getObjToolkit("admin");
        $strReturn = "";
        if($this->getStrHint() != null)
            $strReturn .= $objToolkit->formTextRow($this->getStrHint());

        $strReturn .= $objToolkit->formInputSubmit($this->getStrLabel(), $this->getStrValue(), $this->getStrEventhandler(), $this->getBitReadonly());

        return $strReturn;
    }

    /**
     * @param string $strEventhandler
     */
    public function setStrEventhandler($strEventhandler) {
        $this->strEventhandler = $strEventhandler;
    }

    /**
     * @return string
     */
    public function getStrEventhandler() {
        return $this->strEventhandler;
    }




}<commit_msg>NEW: method setStrEventhandler returns now $this<commit_after><?php
/*"******************************************************************************************************
*   (c) 2007-2013 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*	$Id$                               *
********************************************************************************************************/

/**
 * @author <EMAIL>
 * @since 4.3
 * @package module_formgenerator
 */
class class_formentry_button extends class_formentry_base implements interface_formentry {

    private $strEventhandler = "";

    public function __construct($strFormName, $strSourceProperty = "", $objSourceObject = null) {
        parent::__construct($strFormName, $strSourceProperty, $objSourceObject);

        //set the default validator
        $this->setObjValidator(new class_dummy_validator());
    }

    /**
     * Renders the field itself.
     * In most cases, based on the current toolkit.
     *
     * @return string
     */
    public function renderField() {
        $objToolkit = class_carrier::getInstance()->getObjToolkit("admin");
        $strReturn = "";
        if($this->getStrHint() != null)
            $strReturn .= $objToolkit->formTextRow($this->getStrHint());

        $strReturn .= $objToolkit->formInputSubmit($this->getStrLabel(), $this->getStrValue(), $this->getStrEventhandler(), $this->getBitReadonly());

        return $strReturn;
    }

    /**
     * @param string $strEventhandler
     * @return class_formentry_button
     */
    public function setStrEventhandler($strEventhandler) {
        $this->strEventhandler = $strEventhandler;
        return $this;
    }

    /**
     * @return string
     */
    public function getStrEventhandler() {
        return $this->strEventhandler;
    }




}
{'fraction_non_alphanumeric': 0.260414068346221, 'fraction_numerical': 0.005986530306809678, 'mean_word_length': 2.2286634460547505, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4937405', 'n_tokens_mistral': 1009, 'n_tokens_neox': 953, 'n_words': 189}