public static function getAllUserGroupTypes(CNabuCustomer $nb_customer)
    {
        $nb_customer_id = nb_getMixedValue($nb_customer, 'nb_customer_id');
        if (is_numeric($nb_customer_id)) {
            $retval = forward_static_call(
            array(get_called_class(), 'buildObjectListFromSQL'),
                'nb_user_group_type_id',
                'select * '
                . 'from nb_user_group_type '
               . 'where nb_customer_id=%cust_id$d',
                array(
                    'cust_id' => $nb_customer_id
                ),
                $nb_customer
            );
        } else {
            $retval = new CNabuUserGroupTypeList();
        }
        
        return $retval;
    }
public static function getAllUserGroupTypes(CNabuCustomer $nb_customer)
    {
        $nb_customer_id = nb_getMixedValue($nb_customer, 'nb_customer_id');
        if (is_numeric($nb_customer_id)) {
            $retval = forward_static_call(
            array(get_called_class(), 'buildObjectListFromSQL'),
                'nb_user_group_type_id',
                'select * '
                . 'from nb_user_group_type '
               . 'where nb_customer_id=%cust_id$d',
                array(
                    'cust_id' => $nb_customer_id
                ),
                $nb_customer
            );
        } else {
            $retval = new CNabuUserGroupTypeList();
        }
        
        return $retval;
    }
public static function getAllUserGroupTypes ( CNabuCustomer $ nb_customer ) { $ nb_customer_id = nb_getMixedValue ( $ nb_customer , 'nb_customer_id' ) ; if ( is_numeric ( $ nb_customer_id ) ) { $ retval = forward_static_call ( array ( get_called_class ( ) , 'buildObjectListFromSQL' ) , 'nb_user_group_type_id' , 'select * ' . 'from nb_user_group_type ' . 'where nb_customer_id=%cust_id$d' , array ( 'cust_id' => $ nb_customer_id ) , $ nb_customer ) ; } else { $ retval = new CNabuUserGroupTypeList ( ) ; } return $ retval ; }
Get all items in the storage as an associative array where the field 'nb_user_group_type_id' is the index, and
each value is an instance of class CNabuUserGroupTypeBase.
@param CNabuCustomer $nb_customer The CNabuCustomer instance of the Customer that owns the User Group Type List.
@return mixed Returns and array with all items.
Get all items in the storage as an associative array where the field nb_user_group_type_id is the index and each value is an instance of class CNabuUserGroupTypeBase .