e107inc/e107

View on GitHub
e107_admin/users_extended.php

Summary

Maintainability
A
2 hrs
Test Coverage
F
13%

Avoid deeply nested control flow statements.
Open

                    if($sql->gen("DESCRIBE " . MPREFIX . $table_list))
                    {
                        while($row3 = $sql->fetch())
                        {
                            $field_name = $row3['Field'];
Severity: Major
Found in e107_admin/users_extended.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if($sql->gen("DESCRIBE " . MPREFIX . "{$table_list}"))
                        {
                            while($row3 = $sql->fetch())
                            {
                                $field_name = $row3['Field'];
    Severity: Major
    Found in e107_admin/users_extended.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if($sql->gen("DESCRIBE " . MPREFIX . "{$table_list}"))
                          {
                              while($row3 = $sql->fetch())
                              {
                                  $field_name = $row3['Field'];
      Severity: Major
      Found in e107_admin/users_extended.php - About 45 mins to fix

        Assigning array<string></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                    $this->fields['field_placeholder']['writeParms']['default'] =  $tmp[4];
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_DB_FIELD
        Open

                    $db_hide = ($current['user_extended_struct_type'] == EUF_DB_FIELD) ? "block" : "none";
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Argument 3 (selected) is '1' but \user_extended_struct_form_ui::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
        Open

                            return $this->select('user_extended_struct_type', $types, $curVal, array('class'=>'tbox e-select'));
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Call to deprecated function \getperms() defined at /code/class2.php:1322
        Open

        if (!getperms('4'))
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_ADDON
        Open

                    if($type === EUF_ADDON)
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_DB_FIELD
        Open

                    $val_hide = ($type !== EUF_DB_FIELD && $type !== EUF_TEXT && $type !== EUF_COUNTRY ) ? "visible" : "none";
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_DB_FIELD
        Open

                    if($this->getController()->getAction() === 'edit' && ($type !== EUF_DB_FIELD))
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Assigning array<string></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                    $this->fields['field_regexfail']['writeParms']['default']   =  $tmp[2];
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \ADMIN_TRUE_ICON
        Open

                    <td class='center'>".($active ? ADMIN_TRUE_ICON : "&nbsp;")."</td>
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Assigning array<string></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                    $this->fields['field_include']['writeParms']['default']     =  $tmp[0];
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_DB_FIELD
        Open

                    if($new_data['user_extended_struct_type'] == EUF_DB_FIELD)
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Assigning array<string></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                    $this->fields['field_userhide']['writeParms']['default']    =  $tmp[3];
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Assigning array<string></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                        $this->fields['user_extended_struct_type']['title'] = LAN_TYPE;
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_TEXT
        Open

                    $val_hide = ($type !== EUF_DB_FIELD && $type !== EUF_TEXT && $type !== EUF_COUNTRY ) ? "visible" : "none";
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Argument 1 (no_cache) is 'getfile' but \e107_user_extended::parse_extended_xml() takes bool|false defined at /code/e107_handlers/user_extended_class.php:1527
        Open

                    $preList = $ue->parse_extended_xml('getfile');
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Assigning array<string></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                    $this->fields['field_helptip']['writeParms']['default']     =  $tmp[5];
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Argument 1 (no_cache) is 'getfile' but \e107_user_extended::parse_extended_xml() takes bool|false defined at /code/e107_handlers/user_extended_class.php:1527
        Open

                    $preList = $ue->parse_extended_xml('getfile');
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Assigning array<string></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                    $this->fields['field_regex']['writeParms']['default']       =  $tmp[1];
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_ADDON
        Open

                            if($curVal == EUF_ADDON)
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Reference to undeclared constant \EUF_COUNTRY
        Open

                    $val_hide = ($type !== EUF_DB_FIELD && $type !== EUF_TEXT && $type !== EUF_COUNTRY ) ? "visible" : "none";
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        Assigning array<string assigned category></string> to property but \user_extended_struct_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},user_extended_struct_id:array{title:'ID',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_name:array{title:'Name',type:'method',data:'str',readonly:true,width:'350px',help:'',readParms:'',writeParms:array{tdClassRight:'form-inline',pre:'user_ ',required:true},class:'left',thclass:'left'},user_extended_struct_text:array{title:'Label',type:'text',data:'str',width:'auto',inline:true,help:'',readParms:'constant=1',writeParms:array{required:true},class:'left',thclass:'left'},user_extended_struct_type:array{title:'Preview',type:'method',data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_values:array{title:'Values',type:'method',nolist:true,data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_default:array{title:'Default Value',type:'text',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parent:array{title:'Category',type:'dropdown',tab:1,data:'int',width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},field_placeholder:array{title:'Placeholder',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_helptip:array{title:'Help Tip',tab:1,type:'text',data:false,writeParms:array{size:'xxlarge'}},field_include:array{title:'Field include text',tab:1,type:'textarea',data:false,help:'Any valid w3c parameter may be entered here\x3cbr /\x3ee.g. \x3cb\x3e\x3ci\x3eclass=\'tbox\' size=\'40\' maxlength=\'80\'\x3c/i\x3e\x3c/b\x3e',writeParms:array{size:'xxlarge'}},field_regex:array{title:'regex validation code',tab:1,type:'text',data:false,help:'Enter the regex code that will need to be matched to make it a valid entry \x3cbr /\x3e**regex delimiters are required**',writeParms:array{size:'xxlarge'}},field_regexfail:array{title:'regex failure text',tab:1,type:'text',data:false,help:'Enter the error message that will be shown if the regex validation fails.',writeParms:array{size:'xxlarge'}},field_userhide:array{title:'Allow user to hide',tab:1,type:'boolean',data:false,help:'Setting this to yes will allow the user to hide this value from non-admins',writeParms:array{size:'xxlarge'}},user_extended_struct_required:array{title:'Required',type:'method',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_applicable:array{title:'Applicable',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_parms:array{title:'Params',type:'hidden',data:'str',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_read:array{title:'Read access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_write:array{title:'Write access',type:'userclass',data:'int',filter:true,batch:true,width:'10%',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_signup:array{title:'Signup',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},user_extended_struct_order:array{title:'Order',type:'hidden',nolist:true,data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1',readParms:'sort=1'}}
        Open

                    $this->fields['user_extended_struct_parent']['writeParms']['optArray'] = $opts;
        Severity: Minor
        Found in e107_admin/users_extended.php by phan

        There are no issues that match your filters.

        Category
        Status