<commit_before><?php
/*"******************************************************************************************************
*   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
*   (c) 2007-2015 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
********************************************************************************************************/

/**
 * Model-Class for search queries.
 *
 * @package module_search
 * @author <EMAIL>
 * @since 3.4
 * @targetTable search_search.search_search_id
 *
 * @module search
 * @moduleId _search_module_id_
 */
class class_module_search_search extends class_model implements interface_model, interface_sortable_rating, interface_admin_listable {


    /**
     * @var string
     * @tableColumn search_search.search_search_query
     * @tableColumnDatatype char254
     * @listOrder
     * @fieldMandatory
     * @fieldType text
     */
    private $strQuery;

    /**
     * @var string
     * @tableColumn search_search.search_search_filter_modules
     * @tableColumnDatatype char254
     */
    private $strInternalFilterModules = "-1";

    /**
     * @var string
     * @tableColumn search_search.search_search_private
     * @tableColumnDatatype int
     */
    private $intPrivate = 0;

    /**
     * For form-generation only
     *
     * @var array
     * @fieldType toggle_buttonbar
     * @fieldLabel search_modules
     */
    private $arrFormFilterModules = array();

    /**
     * For form-generation only
     *
     * @var array
     * @fieldType dropdown
     * @fieldLabel search_users
     */
    private $arrFormFilterUsers = array();

    /**
     * @var null
     * @fieldType date
     */
    private $objChangeStartdate = null;

    /**
     * @var null
     * @fieldType date
     */
    private $objChangeEnddate= null;

    /**
     * @var null
     */
    private $bitPortalObjectFilter = null;

    /**
     * @var null
     */
    private $strPortalLangFilter = null;


    public function getStrDisplayName() {
        return $this->getStrQuery();
    }


    /**
     * Returns the filter modules to edit the filter modules
     *
     * @return array
     */
    public function getFilterModules() {
        if(uniStrlen($this->strInternalFilterModules) > 0 && $this->strInternalFilterModules != "-1") {
            return explode(",", $this->strInternalFilterModules);
        }
        return array();
    }

    /**
     * Returns the filter modules to edit the filter modules
     *
     * @return array
     */
    public function getFilterUsers() {
        if(uniStrlen($this->arrFormFilterUsers) > 0 && $this->arrFormFilterUsers != "-1") {
            return explode(",", $this->arrFormFilterUsers);
        }<commit_msg>UPDATE: module_search | class_module_search_admin > fix get filter users<commit_after><?php
/*"******************************************************************************************************
*   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
*   (c) 2007-2015 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
********************************************************************************************************/

/**
 * Model-Class for search queries.
 *
 * @package module_search
 * @author <EMAIL>
 * @since 3.4
 * @targetTable search_search.search_search_id
 *
 * @module search
 * @moduleId _search_module_id_
 */
class class_module_search_search extends class_model implements interface_model, interface_sortable_rating, interface_admin_listable {


    /**
     * @var string
     * @tableColumn search_search.search_search_query
     * @tableColumnDatatype char254
     * @listOrder
     * @fieldMandatory
     * @fieldType text
     */
    private $strQuery;

    /**
     * @var string
     * @tableColumn search_search.search_search_filter_modules
     * @tableColumnDatatype char254
     */
    private $strInternalFilterModules = "-1";

    /**
     * @var string
     * @tableColumn search_search.search_search_private
     * @tableColumnDatatype int
     */
    private $intPrivate = 0;

    /**
     * For form-generation only
     *
     * @var array
     * @fieldType toggle_buttonbar
     * @fieldLabel search_modules
     */
    private $arrFormFilterModules = array();

    /**
     * For form-generation only
     *
     * @var array
     * @fieldType dropdown
     * @fieldLabel search_users
     */
    private $arrFormFilterUsers = array();

    /**
     * @var null
     * @fieldType date
     */
    private $objChangeStartdate = null;

    /**
     * @var null
     * @fieldType date
     */
    private $objChangeEnddate= null;

    /**
     * @var null
     */
    private $bitPortalObjectFilter = null;

    /**
     * @var null
     */
    private $strPortalLangFilter = null;


    public function getStrDisplayName() {
        return $this->getStrQuery();
    }


    /**
     * Returns the filter modules to edit the filter modules
     *
     * @return array
     */
    public function getFilterModules() {
        if(uniStrlen($this->strInternalFilterModules) > 0 && $this->strInternalFilterModules != "-1") {
            return explode(",", $this->strInternalFilterModules);
        }
        return array();
    }

    /**
     * Returns the filter modules to edit the filter modules
     *
     * @return array
     */
    public function getFilterUsers() {
        if (is_array($this->arrFormFilterUsers)) {
            return $this->arrFormFilterUsers;
        } elseif (!empty($this->arrFormFilterUsers) && $this->arrFormFilterUsers != "-1") {
            return explode(",", $this->arrFormFilterUsers);
        }
{'fraction_non_alphanumeric': 0.17001338688085676, 'fraction_numerical': 0.010542168674698794, 'mean_word_length': 2.2696936542669586, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5825647', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1593, 'n_words': 350}