public static function prepareDependencyHandler($handleType, $field, &$arrField, &$arrGridPrepare, &$arrFormData)  
    {    
        // select fields?
        if (isset($arrField['dependency']['selectField']) && is_array($arrField['dependency']['selectField']))
        {
            foreach($arrField['dependency']['selectField'] as $f => $v)
            {
                $arrGridPrepare['selectField'][$f] = $v;
            }
        }
        
        // total joins
        if (isset($arrField['dependency']['joinTotal']) && is_array($arrField['dependency']['joinTotal']))
        {
            foreach($arrField['dependency']['joinTotal'] as $f => $v)
            {
                $arrGridPrepare['joinTotal'][$f] = $v;
            }
        }

        // row joins
        if (isset($arrField['dependency']['joinRow']) && is_array($arrField['dependency']['joinRow']))
        {
            foreach($arrField['dependency']['joinRow'] as $f => $v)
            {
                $arrGridPrepare['joinRow'][$f] = $v;
            }
        }

        // rowFunctions
        if (isset($arrField['dependency']['rowFunctions']) && is_array($arrField['dependency']['rowFunctions']))
        {
            foreach ($arrField['dependency']['rowFunctions'] as $f => $v)
            {
                $arrGridPrepare['rowFunctions'][$f] = $v;
            }
        }

        // total groups
        if (isset($arrField['dependency']['groupTotal']) && is_array($arrField['dependency']['groupTotal']))
        {
            foreach ($arrField['dependency']['groupTotal'] as $f => $v)
            {
                $arrGridPrepare['groupTotal'][$f] = $v;
            }
        }

        // row groups
        if (isset($arrField['dependency']['groupRow']) && is_array($arrField['dependency']['groupRow']))
        {
            foreach ($arrField['dependency']['groupRow'] as $f => $v)
            {
                $arrGridPrepare['groupRow'][$f] = $v;
            }
        }

        // dataFunctions
        if (isset($arrField['dependency']['dataFunctions']) && is_array($arrField['dependency']['dataFunctions']))
        {
            foreach ($arrField['dependency']['dataFunctions'] as $f => $v)
            {
                $arrGridPrepare['dataFunctions'][$f] = $v;
            }
        }
    }
public static function prepareDependencyHandler($handleType, $field, &$arrField, &$arrGridPrepare, &$arrFormData)  
    {    
        // select fields?
        if (isset($arrField['dependency']['selectField']) && is_array($arrField['dependency']['selectField']))
        {
            foreach($arrField['dependency']['selectField'] as $f => $v)
            {
                $arrGridPrepare['selectField'][$f] = $v;
            }
        }
        
        // total joins
        if (isset($arrField['dependency']['joinTotal']) && is_array($arrField['dependency']['joinTotal']))
        {
            foreach($arrField['dependency']['joinTotal'] as $f => $v)
            {
                $arrGridPrepare['joinTotal'][$f] = $v;
            }
        }

        // row joins
        if (isset($arrField['dependency']['joinRow']) && is_array($arrField['dependency']['joinRow']))
        {
            foreach($arrField['dependency']['joinRow'] as $f => $v)
            {
                $arrGridPrepare['joinRow'][$f] = $v;
            }
        }

        // rowFunctions
        if (isset($arrField['dependency']['rowFunctions']) && is_array($arrField['dependency']['rowFunctions']))
        {
            foreach ($arrField['dependency']['rowFunctions'] as $f => $v)
            {
                $arrGridPrepare['rowFunctions'][$f] = $v;
            }
        }

        // total groups
        if (isset($arrField['dependency']['groupTotal']) && is_array($arrField['dependency']['groupTotal']))
        {
            foreach ($arrField['dependency']['groupTotal'] as $f => $v)
            {
                $arrGridPrepare['groupTotal'][$f] = $v;
            }
        }

        // row groups
        if (isset($arrField['dependency']['groupRow']) && is_array($arrField['dependency']['groupRow']))
        {
            foreach ($arrField['dependency']['groupRow'] as $f => $v)
            {
                $arrGridPrepare['groupRow'][$f] = $v;
            }
        }

        // dataFunctions
        if (isset($arrField['dependency']['dataFunctions']) && is_array($arrField['dependency']['dataFunctions']))
        {
            foreach ($arrField['dependency']['dataFunctions'] as $f => $v)
            {
                $arrGridPrepare['dataFunctions'][$f] = $v;
            }
        }
    }
public static function prepareDependencyHandler ( $ handleType , $ field , & $ arrField , & $ arrGridPrepare , & $ arrFormData ) { // select fields? if ( isset ( $ arrField [ 'dependency' ] [ 'selectField' ] ) && is_array ( $ arrField [ 'dependency' ] [ 'selectField' ] ) ) { foreach ( $ arrField [ 'dependency' ] [ 'selectField' ] as $ f => $ v ) { $ arrGridPrepare [ 'selectField' ] [ $ f ] = $ v ; } } // total joins if ( isset ( $ arrField [ 'dependency' ] [ 'joinTotal' ] ) && is_array ( $ arrField [ 'dependency' ] [ 'joinTotal' ] ) ) { foreach ( $ arrField [ 'dependency' ] [ 'joinTotal' ] as $ f => $ v ) { $ arrGridPrepare [ 'joinTotal' ] [ $ f ] = $ v ; } } // row joins if ( isset ( $ arrField [ 'dependency' ] [ 'joinRow' ] ) && is_array ( $ arrField [ 'dependency' ] [ 'joinRow' ] ) ) { foreach ( $ arrField [ 'dependency' ] [ 'joinRow' ] as $ f => $ v ) { $ arrGridPrepare [ 'joinRow' ] [ $ f ] = $ v ; } } // rowFunctions if ( isset ( $ arrField [ 'dependency' ] [ 'rowFunctions' ] ) && is_array ( $ arrField [ 'dependency' ] [ 'rowFunctions' ] ) ) { foreach ( $ arrField [ 'dependency' ] [ 'rowFunctions' ] as $ f => $ v ) { $ arrGridPrepare [ 'rowFunctions' ] [ $ f ] = $ v ; } } // total groups if ( isset ( $ arrField [ 'dependency' ] [ 'groupTotal' ] ) && is_array ( $ arrField [ 'dependency' ] [ 'groupTotal' ] ) ) { foreach ( $ arrField [ 'dependency' ] [ 'groupTotal' ] as $ f => $ v ) { $ arrGridPrepare [ 'groupTotal' ] [ $ f ] = $ v ; } } // row groups if ( isset ( $ arrField [ 'dependency' ] [ 'groupRow' ] ) && is_array ( $ arrField [ 'dependency' ] [ 'groupRow' ] ) ) { foreach ( $ arrField [ 'dependency' ] [ 'groupRow' ] as $ f => $ v ) { $ arrGridPrepare [ 'groupRow' ] [ $ f ] = $ v ; } } // dataFunctions if ( isset ( $ arrField [ 'dependency' ] [ 'dataFunctions' ] ) && is_array ( $ arrField [ 'dependency' ] [ 'dataFunctions' ] ) ) { foreach ( $ arrField [ 'dependency' ] [ 'dataFunctions' ] as $ f => $ v ) { $ arrGridPrepare [ 'dataFunctions' ] [ $ f ] = $ v ; } } }
Handles dependecies when certain fields are selected or searched

@param string $handleType column, where
@param string $field current field
@param array $arrField details about field
@param array $arrGridPrepare
@param array $arrFormData the form|GET|POST
Handles dependecies when certain fields are selected or searched